Przeglądaj źródła

new export

master
Daniel 1 rok temu
rodzic
commit
0cde3ddef7
4 zmienionych plików z 123 dodań i 9 usunięć
  1. +1
    -1
      matsen-tool/openapi.json
  2. +78
    -0
      matsen-tool/openapi.yaml
  3. +28
    -4
      matsen-tool/src/app/core/api/v1/api/comment.service.ts
  4. +16
    -4
      matsen-tool/src/app/core/api/v1/api/document.service.ts

+ 1
- 1
matsen-tool/openapi.json
Plik diff jest za duży
Wyświetl plik


+ 78
- 0
matsen-tool/openapi.yaml Wyświetl plik

@@ -79,6 +79,58 @@ paths:
style: form
explode: false
allowReserved: false
-
name: posting
in: query
description: ''
required: false
deprecated: false
allowEmptyValue: true
schema:
type: string
style: form
explode: false
allowReserved: false
-
name: 'posting[]'
in: query
description: ''
required: false
deprecated: false
allowEmptyValue: true
schema:
type: array
items:
type: string
style: form
explode: true
allowReserved: false
-
name: owner
in: query
description: ''
required: false
deprecated: false
allowEmptyValue: true
schema:
type: string
style: form
explode: false
allowReserved: false
-
name: 'owner[]'
in: query
description: ''
required: false
deprecated: false
allowEmptyValue: true
schema:
type: array
items:
type: string
style: form
explode: true
allowReserved: false
deprecated: false
post:
operationId: api_comments_post
@@ -908,6 +960,32 @@ paths:
style: form
explode: false
allowReserved: false
-
name: createdBy
in: query
description: ''
required: false
deprecated: false
allowEmptyValue: true
schema:
type: string
style: form
explode: false
allowReserved: false
-
name: 'createdBy[]'
in: query
description: ''
required: false
deprecated: false
allowEmptyValue: true
schema:
type: array
items:
type: string
style: form
explode: true
allowReserved: false
-
name: partner
in: query


+ 28
- 4
matsen-tool/src/app/core/api/v1/api/comment.service.ts Wyświetl plik

@@ -104,13 +104,17 @@ export class CommentService {
* Retrieves the collection of Comment resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param posting
* @param posting2
* @param owner
* @param owner2
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public commentsGetCollection(page?: number, itemsPerPage?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiCommentsGetCollection200Response>;
public commentsGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiCommentsGetCollection200Response>>;
public commentsGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiCommentsGetCollection200Response>>;
public commentsGetCollection(page?: number, itemsPerPage?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
public commentsGetCollection(page?: number, itemsPerPage?: number, posting?: string, posting2?: Array<string>, owner?: string, owner2?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiCommentsGetCollection200Response>;
public commentsGetCollection(page?: number, itemsPerPage?: number, posting?: string, posting2?: Array<string>, owner?: string, owner2?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiCommentsGetCollection200Response>>;
public commentsGetCollection(page?: number, itemsPerPage?: number, posting?: string, posting2?: Array<string>, owner?: string, owner2?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiCommentsGetCollection200Response>>;
public commentsGetCollection(page?: number, itemsPerPage?: number, posting?: string, posting2?: Array<string>, owner?: string, owner2?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
@@ -121,6 +125,26 @@ export class CommentService {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (posting !== undefined && posting !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>posting, 'posting');
}
if (posting2) {
posting2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'posting[]');
})
}
if (owner !== undefined && owner !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>owner, 'owner');
}
if (owner2) {
owner2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'owner[]');
})
}

let localVarHeaders = this.defaultHeaders;



+ 16
- 4
matsen-tool/src/app/core/api/v1/api/document.service.ts Wyświetl plik

@@ -104,6 +104,8 @@ export class DocumentService {
* Retrieves the collection of Document resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param createdBy
* @param createdBy2
* @param partner
* @param partner2
* @param product
@@ -111,10 +113,10 @@ export class DocumentService {
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public documentsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiDocumentsGetCollection200Response>;
public documentsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiDocumentsGetCollection200Response>>;
public documentsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiDocumentsGetCollection200Response>>;
public documentsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
public documentsGetCollection(page?: number, itemsPerPage?: number, createdBy?: string, createdBy2?: Array<string>, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiDocumentsGetCollection200Response>;
public documentsGetCollection(page?: number, itemsPerPage?: number, createdBy?: string, createdBy2?: Array<string>, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiDocumentsGetCollection200Response>>;
public documentsGetCollection(page?: number, itemsPerPage?: number, createdBy?: string, createdBy2?: Array<string>, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiDocumentsGetCollection200Response>>;
public documentsGetCollection(page?: number, itemsPerPage?: number, createdBy?: string, createdBy2?: Array<string>, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
@@ -125,6 +127,16 @@ export class DocumentService {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (createdBy !== undefined && createdBy !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>createdBy, 'createdBy');
}
if (createdBy2) {
createdBy2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'createdBy[]');
})
}
if (partner !== undefined && partner !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>partner, 'partner');


Ładowanie…
Anuluj
Zapisz