diff --git a/matsen-tool/openapi.yaml b/matsen-tool/openapi.yaml index 086c6e7..9d46bf9 100644 --- a/matsen-tool/openapi.yaml +++ b/matsen-tool/openapi.yaml @@ -8,6 +8,239 @@ servers: url: / description: '' paths: + /api/comments: + get: + operationId: api_comments_get_collection + tags: + - Comment + responses: + 200: + description: 'Comment collection' + content: + application/ld+json: + schema: + type: object + properties: + 'hydra:member': { type: array, items: { $ref: '#/components/schemas/Comment.jsonld' } } + 'hydra:totalItems': { type: integer, minimum: 0 } + 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } + 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + required: + - 'hydra:member' + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Comment' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/Comment' + application/hal+json: + schema: + type: object + properties: + _embedded: { type: array, items: { $ref: '#/components/schemas/Comment.jsonhal' } } + totalItems: { type: integer, minimum: 0 } + itemsPerPage: { type: integer, minimum: 0 } + _links: { type: object, properties: { self: { type: object, properties: { href: { type: string, format: iri-reference } } }, first: { type: object, properties: { href: { type: string, format: iri-reference } } }, last: { type: object, properties: { href: { type: string, format: iri-reference } } }, next: { type: object, properties: { href: { type: string, format: iri-reference } } }, previous: { type: object, properties: { href: { type: string, format: iri-reference } } } } } + required: + - _links + - _embedded + summary: 'Retrieves the collection of Comment resources.' + description: 'Retrieves the collection of Comment resources.' + parameters: + - + name: page + in: query + description: 'The collection page number' + required: false + deprecated: false + allowEmptyValue: true + schema: + type: integer + default: 1 + style: form + explode: false + allowReserved: false + - + name: itemsPerPage + in: query + description: 'The number of items per page' + required: false + deprecated: false + allowEmptyValue: true + schema: + type: integer + default: 10 + minimum: 0 + maximum: 50 + style: form + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_comments_post + tags: + - Comment + responses: + 201: + description: 'Comment resource created' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Comment.jsonld' + application/json: + schema: + $ref: '#/components/schemas/Comment' + text/html: + schema: + $ref: '#/components/schemas/Comment' + application/hal+json: + schema: + $ref: '#/components/schemas/Comment.jsonhal' + links: { } + 400: + description: 'Invalid input' + 422: + description: 'Unprocessable entity' + summary: 'Creates a Comment resource.' + description: 'Creates a Comment resource.' + parameters: [] + requestBody: + description: 'The new Comment resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Comment.jsonld' + application/json: + schema: + $ref: '#/components/schemas/Comment' + text/html: + schema: + $ref: '#/components/schemas/Comment' + application/hal+json: + schema: + $ref: '#/components/schemas/Comment.jsonhal' + required: true + deprecated: false + parameters: [] + '/api/comments/{id}': + get: + operationId: api_comments_id_get + tags: + - Comment + responses: + 200: + description: 'Comment resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Comment.jsonld' + application/json: + schema: + $ref: '#/components/schemas/Comment' + text/html: + schema: + $ref: '#/components/schemas/Comment' + application/hal+json: + schema: + $ref: '#/components/schemas/Comment.jsonhal' + 404: + description: 'Resource not found' + summary: 'Retrieves a Comment resource.' + description: 'Retrieves a Comment resource.' + parameters: + - + name: id + in: path + description: 'CommentApi identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_comments_id_delete + tags: + - Comment + responses: + 204: + description: 'Comment resource deleted' + 404: + description: 'Resource not found' + summary: 'Removes the Comment resource.' + description: 'Removes the Comment resource.' + parameters: + - + name: id + in: path + description: 'CommentApi identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_comments_id_patch + tags: + - Comment + responses: + 200: + description: 'Comment resource updated' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Comment.jsonld' + application/json: + schema: + $ref: '#/components/schemas/Comment' + text/html: + schema: + $ref: '#/components/schemas/Comment' + application/hal+json: + schema: + $ref: '#/components/schemas/Comment.jsonhal' + links: { } + 400: + description: 'Invalid input' + 422: + description: 'Unprocessable entity' + 404: + description: 'Resource not found' + summary: 'Updates the Comment resource.' + description: 'Updates the Comment resource.' + parameters: + - + name: id + in: path + description: 'CommentApi identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated Comment resource' + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/Comment' + required: true + deprecated: false + parameters: [] /api/contacts: get: operationId: api_contacts_get_collection @@ -1255,6 +1488,140 @@ paths: parameters: [] components: schemas: + Comment: + type: object + description: '' + deprecated: false + required: + - message + properties: + message: + type: + - string + - 'null' + owner: + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + ownerName: + readOnly: true + type: + - string + - 'null' + posting: + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + Comment.jsonhal: + type: object + description: '' + deprecated: false + required: + - message + properties: + _links: + type: object + properties: + self: + type: object + properties: + href: + type: string + format: iri-reference + message: + type: + - string + - 'null' + owner: + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + ownerName: + readOnly: true + type: + - string + - 'null' + posting: + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + Comment.jsonld: + type: object + description: '' + deprecated: false + required: + - message + properties: + '@context': + readOnly: true + oneOf: + - + type: string + - + type: object + properties: + '@vocab': + type: string + hydra: + type: string + enum: ['http://www.w3.org/ns/hydra/core#'] + required: + - '@vocab' + - hydra + additionalProperties: true + '@id': + readOnly: true + type: string + '@type': + readOnly: true + type: string + message: + type: + - string + - 'null' + owner: + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + ownerName: + readOnly: true + type: + - string + - 'null' + posting: + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time Contact: type: object description: '' @@ -1272,7 +1639,6 @@ components: - string - 'null' partner: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1284,7 +1650,6 @@ components: - 'null' format: date-time image: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1307,6 +1672,12 @@ components: type: - string - 'null' + postings: + type: array + items: + type: string + format: iri-reference + example: 'https://example.com/' createdAt: type: - string @@ -1338,7 +1709,6 @@ components: - string - 'null' partner: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1350,7 +1720,6 @@ components: - 'null' format: date-time image: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1373,6 +1742,12 @@ components: type: - string - 'null' + postings: + type: array + items: + type: string + format: iri-reference + example: 'https://example.com/' createdAt: type: - string @@ -1418,7 +1793,6 @@ components: - string - 'null' partner: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1430,7 +1804,6 @@ components: - 'null' format: date-time image: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1453,6 +1826,12 @@ components: type: - string - 'null' + postings: + type: array + items: + type: string + format: iri-reference + example: 'https://example.com/' createdAt: type: - string @@ -1570,7 +1949,6 @@ components: - string - 'null' logo: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1642,7 +2020,6 @@ components: - string - 'null' logo: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1728,7 +2105,6 @@ components: - string - 'null' logo: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1767,7 +2143,6 @@ components: - string - 'null' owner: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1779,17 +2154,21 @@ components: - string - 'null' partner: - anyOf: - - - $ref: '#/components/schemas/Partner' - - - type: 'null' + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' contact: - anyOf: - - - $ref: '#/components/schemas/Contact' - - - type: 'null' + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + comments: + type: array + items: + $ref: '#/components/schemas/Comment' createdAt: readOnly: true type: @@ -1822,7 +2201,6 @@ components: - string - 'null' owner: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1834,17 +2212,21 @@ components: - string - 'null' partner: - anyOf: - - - $ref: '#/components/schemas/Partner.jsonhal' - - - type: 'null' + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' contact: - anyOf: - - - $ref: '#/components/schemas/Contact.jsonhal' - - - type: 'null' + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + comments: + type: array + items: + $ref: '#/components/schemas/Comment.jsonhal' createdAt: readOnly: true type: @@ -1891,7 +2273,6 @@ components: - string - 'null' owner: - 'owl:maxCardinality': 1 type: - string - 'null' @@ -1903,17 +2284,21 @@ components: - string - 'null' partner: - anyOf: - - - $ref: '#/components/schemas/Partner.jsonld' - - - type: 'null' + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' contact: - anyOf: - - - $ref: '#/components/schemas/Contact.jsonld' - - - type: 'null' + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + comments: + type: array + items: + $ref: '#/components/schemas/Comment.jsonld' createdAt: readOnly: true type: @@ -1952,18 +2337,18 @@ components: - 'null' active: type: boolean - createdAt: - readOnly: true - type: - - string - - 'null' - format: date-time postings: type: array items: type: string format: iri-reference example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time User.jsonhal: type: object description: '' @@ -2005,18 +2390,18 @@ components: - 'null' active: type: boolean - createdAt: - readOnly: true - type: - - string - - 'null' - format: date-time postings: type: array items: type: string format: iri-reference example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time User.jsonld: type: object description: '' @@ -2072,18 +2457,18 @@ components: - 'null' active: type: boolean - createdAt: - readOnly: true - type: - - string - - 'null' - format: date-time postings: type: array items: type: string format: iri-reference example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time responses: { } parameters: { } examples: { } diff --git a/matsen-tool/src/app/_helpers/property.interceptor.ts b/matsen-tool/src/app/_helpers/property.interceptor.ts index e64ebaf..4fef097 100644 --- a/matsen-tool/src/app/_helpers/property.interceptor.ts +++ b/matsen-tool/src/app/_helpers/property.interceptor.ts @@ -1,5 +1,3 @@ -// property.interceptor.ts - import { Injectable } from '@angular/core'; import { HttpInterceptor, @@ -21,7 +19,11 @@ export class PropertyInterceptor implements HttpInterceptor { if (event instanceof HttpResponse && event.body) { let modifiedBody; - if (event.body['hydra:member']) { + if (Array.isArray(event.body)) { + // Wenn es sich um ein Array von Ressourcen handelt + modifiedBody = this.mapDataItems(event.body); + } else if (event.body['hydra:member']) { + // Wenn es sich um eine Ressourcenkollektion handelt modifiedBody = { ...event.body, 'hydra:member': this.mapDataItems( @@ -29,7 +31,7 @@ export class PropertyInterceptor implements HttpInterceptor { ), }; } else { - // Wenn keine 'hydra:member' vorhanden ist, betrachte das gesamte Objekt + // Wenn es sich um eine einzelne Ressource handelt modifiedBody = this.mapDataItem(event.body); } @@ -48,12 +50,26 @@ export class PropertyInterceptor implements HttpInterceptor { } private mapDataItem(item: any): any { - if (item && item['@id']) { - return { - ...item, - id: item['@id'], - }; + if (item && typeof item === 'object') { + // Wenn es ein Objekt ist, überprüfe rekursiv + const mappedItem = { ...item }; + + for (const key in mappedItem) { + if (mappedItem.hasOwnProperty(key) && key === '@id') { + mappedItem['id'] = mappedItem[key]; + delete mappedItem[key]; + } else if (Array.isArray(mappedItem[key])) { + // Wenn es sich um ein Array handelt, überprüfe rekursiv jedes Element + mappedItem[key] = this.mapDataItems(mappedItem[key]); + } else if (mappedItem[key] && typeof mappedItem[key] === 'object') { + // Wenn es ein Objekt ist, überprüfe rekursiv + mappedItem[key] = this.mapDataItem(mappedItem[key]); + } + } + + return mappedItem; } + return item; } } diff --git a/matsen-tool/src/app/core/api/v1/.openapi-generator/FILES b/matsen-tool/src/app/core/api/v1/.openapi-generator/FILES index 812c87e..4f77a4e 100644 --- a/matsen-tool/src/app/core/api/v1/.openapi-generator/FILES +++ b/matsen-tool/src/app/core/api/v1/.openapi-generator/FILES @@ -2,6 +2,7 @@ README.md api.module.ts api/api.ts +api/comment.service.ts api/contact.service.ts api/loginCheck.service.ts api/mediaObject.service.ts @@ -12,13 +13,15 @@ configuration.ts encoder.ts git_push.sh index.ts +model/apiCommentsGetCollection200Response.ts +model/apiCommentsGetCollection200Response1.ts +model/apiCommentsGetCollection200Response1Links.ts +model/apiCommentsGetCollection200Response1LinksSelf.ts +model/apiCommentsGetCollection200ResponseHydraSearch.ts +model/apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner.ts +model/apiCommentsGetCollection200ResponseHydraView.ts model/apiContactsGetCollection200Response.ts model/apiContactsGetCollection200Response1.ts -model/apiContactsGetCollection200Response1Links.ts -model/apiContactsGetCollection200Response1LinksSelf.ts -model/apiContactsGetCollection200ResponseHydraSearch.ts -model/apiContactsGetCollection200ResponseHydraSearchHydraMappingInner.ts -model/apiContactsGetCollection200ResponseHydraView.ts model/apiMediaObjectsGetCollection200Response.ts model/apiMediaObjectsGetCollection200Response1.ts model/apiPartnersGetCollection200Response.ts @@ -27,9 +30,12 @@ model/apiPostsGetCollection200Response.ts model/apiPostsGetCollection200Response1.ts model/apiUsersGetCollection200Response.ts model/apiUsersGetCollection200Response1.ts +model/comment.ts +model/commentJsonhal.ts +model/commentJsonhalLinks.ts +model/commentJsonld.ts model/contact.ts model/contactJsonhal.ts -model/contactJsonhalLinks.ts model/contactJsonld.ts model/loginCheckPost200Response.ts model/loginCheckPostRequest.ts diff --git a/matsen-tool/src/app/core/api/v1/api/api.ts b/matsen-tool/src/app/core/api/v1/api/api.ts index 5f6864b..f344004 100644 --- a/matsen-tool/src/app/core/api/v1/api/api.ts +++ b/matsen-tool/src/app/core/api/v1/api/api.ts @@ -1,3 +1,5 @@ +export * from './comment.service'; +import { CommentService } from './comment.service'; export * from './contact.service'; import { ContactService } from './contact.service'; export * from './loginCheck.service'; @@ -10,4 +12,4 @@ export * from './post.service'; import { PostService } from './post.service'; export * from './user.service'; import { UserService } from './user.service'; -export const APIS = [ContactService, LoginCheckService, MediaObjectService, PartnerService, PostService, UserService]; +export const APIS = [CommentService, ContactService, LoginCheckService, MediaObjectService, PartnerService, PostService, UserService]; diff --git a/matsen-tool/src/app/core/api/v1/api/comment.service.ts b/matsen-tool/src/app/core/api/v1/api/comment.service.ts new file mode 100644 index 0000000..dee365f --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/api/comment.service.ts @@ -0,0 +1,479 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ApiCommentsGetCollection200Response } from '../model/apiCommentsGetCollection200Response'; +// @ts-ignore +import { ApiCommentsGetCollection200Response1 } from '../model/apiCommentsGetCollection200Response1'; +// @ts-ignore +import { Comment } from '../model/comment'; +// @ts-ignore +import { CommentJsonhal } from '../model/commentJsonhal'; +// @ts-ignore +import { CommentJsonld } from '../model/commentJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class CommentService { + + protected basePath = 'http://localhost'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieves the collection of Comment resources. + * Retrieves the collection of Comment resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @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}): Observable; + public commentsGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable>; + public commentsGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable>; + 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}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (page !== undefined && page !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + } + if (itemsPerPage !== undefined && itemsPerPage !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + itemsPerPage, 'itemsPerPage'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json', + 'application/json', + 'text/html', + 'application/hal+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/comments`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Removes the Comment resource. + * Removes the Comment resource. + * @param id CommentApi identifier + * @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 commentsIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable; + public commentsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public commentsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable>; + public commentsIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling commentsIdDelete.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/comments/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a Comment resource. + * Retrieves a Comment resource. + * @param id CommentApi identifier + * @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 commentsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable; + public commentsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable>; + public commentsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable>; + public commentsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling commentsIdGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json', + 'application/json', + 'text/html', + 'application/hal+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/comments/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the Comment resource. + * Updates the Comment resource. + * @param id CommentApi identifier + * @param comment The updated Comment resource + * @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 commentsIdPatch(id: string, comment: Comment, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable; + public commentsIdPatch(id: string, comment: Comment, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable>; + public commentsIdPatch(id: string, comment: Comment, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable>; + public commentsIdPatch(id: string, comment: Comment, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling commentsIdPatch.'); + } + if (comment === null || comment === undefined) { + throw new Error('Required parameter comment was null or undefined when calling commentsIdPatch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json', + 'application/json', + 'text/html', + 'application/hal+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/merge-patch+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/comments/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: comment, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a Comment resource. + * Creates a Comment resource. + * @param commentJsonld The new Comment resource + * @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 commentsPost(commentJsonld: CommentJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable; + public commentsPost(commentJsonld: CommentJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable>; + public commentsPost(commentJsonld: CommentJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable>; + public commentsPost(commentJsonld: CommentJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable { + if (commentJsonld === null || commentJsonld === undefined) { + throw new Error('Required parameter commentJsonld was null or undefined when calling commentsPost.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json', + 'application/json', + 'text/html', + 'application/hal+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/ld+json', + 'application/json', + 'text/html', + 'application/hal+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/comments`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: commentJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + reportProgress: reportProgress + } + ); + } + +} diff --git a/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response.ts new file mode 100644 index 0000000..91e7789 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response.ts @@ -0,0 +1,23 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CommentJsonld } from './commentJsonld'; +import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; +import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; + + +export interface ApiCommentsGetCollection200Response { + 'hydra:member': Array; + 'hydra:totalItems'?: number; + 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; + 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1.ts new file mode 100644 index 0000000..11b0ad5 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1.ts @@ -0,0 +1,22 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiCommentsGetCollection200Response1Links } from './apiCommentsGetCollection200Response1Links'; +import { CommentJsonhal } from './commentJsonhal'; + + +export interface ApiCommentsGetCollection200Response1 { + _embedded: Array; + totalItems?: number; + itemsPerPage?: number; + _links: ApiCommentsGetCollection200Response1Links; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1Links.ts b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1Links.ts new file mode 100644 index 0000000..cfe30f1 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1Links.ts @@ -0,0 +1,22 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiCommentsGetCollection200Response1LinksSelf } from './apiCommentsGetCollection200Response1LinksSelf'; + + +export interface ApiCommentsGetCollection200Response1Links { + self?: ApiCommentsGetCollection200Response1LinksSelf; + first?: ApiCommentsGetCollection200Response1LinksSelf; + last?: ApiCommentsGetCollection200Response1LinksSelf; + next?: ApiCommentsGetCollection200Response1LinksSelf; + previous?: ApiCommentsGetCollection200Response1LinksSelf; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1LinksSelf.ts b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1LinksSelf.ts new file mode 100644 index 0000000..d6eacbb --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1LinksSelf.ts @@ -0,0 +1,17 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ApiCommentsGetCollection200Response1LinksSelf { + href?: string; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraSearch.ts b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraSearch.ts new file mode 100644 index 0000000..3df011a --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraSearch.ts @@ -0,0 +1,21 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiCommentsGetCollection200ResponseHydraSearchHydraMappingInner } from './apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner'; + + +export interface ApiCommentsGetCollection200ResponseHydraSearch { + type?: string; + 'hydra:template'?: string; + 'hydra:variableRepresentation'?: string; + 'hydra:mapping'?: Array; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner.ts b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner.ts new file mode 100644 index 0000000..3e8ba3d --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner.ts @@ -0,0 +1,20 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ApiCommentsGetCollection200ResponseHydraSearchHydraMappingInner { + type?: string; + variable?: string; + property?: string | null; + required?: boolean; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraView.ts b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraView.ts new file mode 100644 index 0000000..307df73 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraView.ts @@ -0,0 +1,22 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ApiCommentsGetCollection200ResponseHydraView { + id?: string; + type?: string; + 'hydra:first'?: string; + 'hydra:last'?: string; + 'hydra:previous'?: string; + 'hydra:next'?: string; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response.ts index b414aa9..999b3bb 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response.ts @@ -10,14 +10,14 @@ * Do not edit the class manually. */ import { ContactJsonld } from './contactJsonld'; -import { ApiContactsGetCollection200ResponseHydraSearch } from './apiContactsGetCollection200ResponseHydraSearch'; -import { ApiContactsGetCollection200ResponseHydraView } from './apiContactsGetCollection200ResponseHydraView'; +import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; +import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; export interface ApiContactsGetCollection200Response { 'hydra:member': Array; 'hydra:totalItems'?: number; - 'hydra:view'?: ApiContactsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch; + 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; + 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; } diff --git a/matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response1.ts index b5eff5f..c48e46f 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response1.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response1.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ApiContactsGetCollection200Response1Links } from './apiContactsGetCollection200Response1Links'; import { ContactJsonhal } from './contactJsonhal'; +import { ApiCommentsGetCollection200Response1Links } from './apiCommentsGetCollection200Response1Links'; export interface ApiContactsGetCollection200Response1 { _embedded: Array; totalItems?: number; itemsPerPage?: number; - _links: ApiContactsGetCollection200Response1Links; + _links: ApiCommentsGetCollection200Response1Links; } diff --git a/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts index 8acdc2d..0597239 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts @@ -9,15 +9,15 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ApiContactsGetCollection200ResponseHydraSearch } from './apiContactsGetCollection200ResponseHydraSearch'; +import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; +import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; import { MediaObjectJsonldMediaObjectRead } from './mediaObjectJsonldMediaObjectRead'; -import { ApiContactsGetCollection200ResponseHydraView } from './apiContactsGetCollection200ResponseHydraView'; export interface ApiMediaObjectsGetCollection200Response { 'hydra:member': Array; 'hydra:totalItems'?: number; - 'hydra:view'?: ApiContactsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch; + 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; + 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; } diff --git a/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response1.ts index 040210a..3b77973 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response1.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response1.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ApiContactsGetCollection200Response1Links } from './apiContactsGetCollection200Response1Links'; import { MediaObjectJsonhalMediaObjectRead } from './mediaObjectJsonhalMediaObjectRead'; +import { ApiCommentsGetCollection200Response1Links } from './apiCommentsGetCollection200Response1Links'; export interface ApiMediaObjectsGetCollection200Response1 { _embedded: Array; totalItems?: number; itemsPerPage?: number; - _links: ApiContactsGetCollection200Response1Links; + _links: ApiCommentsGetCollection200Response1Links; } diff --git a/matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response.ts index a7056f6..452906b 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response.ts @@ -9,15 +9,15 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ApiContactsGetCollection200ResponseHydraSearch } from './apiContactsGetCollection200ResponseHydraSearch'; +import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; import { PartnerJsonld } from './partnerJsonld'; -import { ApiContactsGetCollection200ResponseHydraView } from './apiContactsGetCollection200ResponseHydraView'; +import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; export interface ApiPartnersGetCollection200Response { 'hydra:member': Array; 'hydra:totalItems'?: number; - 'hydra:view'?: ApiContactsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch; + 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; + 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; } diff --git a/matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response1.ts index 3345f23..ba87998 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response1.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response1.ts @@ -9,7 +9,7 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ApiContactsGetCollection200Response1Links } from './apiContactsGetCollection200Response1Links'; +import { ApiCommentsGetCollection200Response1Links } from './apiCommentsGetCollection200Response1Links'; import { PartnerJsonhal } from './partnerJsonhal'; @@ -17,6 +17,6 @@ export interface ApiPartnersGetCollection200Response1 { _embedded: Array; totalItems?: number; itemsPerPage?: number; - _links: ApiContactsGetCollection200Response1Links; + _links: ApiCommentsGetCollection200Response1Links; } diff --git a/matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response.ts index a18c8b7..be9ef8f 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response.ts @@ -10,14 +10,14 @@ * Do not edit the class manually. */ import { PostJsonld } from './postJsonld'; -import { ApiContactsGetCollection200ResponseHydraSearch } from './apiContactsGetCollection200ResponseHydraSearch'; -import { ApiContactsGetCollection200ResponseHydraView } from './apiContactsGetCollection200ResponseHydraView'; +import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; +import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; export interface ApiPostsGetCollection200Response { 'hydra:member': Array; 'hydra:totalItems'?: number; - 'hydra:view'?: ApiContactsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch; + 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; + 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; } diff --git a/matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response1.ts index a7894e7..a8a6154 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response1.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response1.ts @@ -9,7 +9,7 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ApiContactsGetCollection200Response1Links } from './apiContactsGetCollection200Response1Links'; +import { ApiCommentsGetCollection200Response1Links } from './apiCommentsGetCollection200Response1Links'; import { PostJsonhal } from './postJsonhal'; @@ -17,6 +17,6 @@ export interface ApiPostsGetCollection200Response1 { _embedded: Array; totalItems?: number; itemsPerPage?: number; - _links: ApiContactsGetCollection200Response1Links; + _links: ApiCommentsGetCollection200Response1Links; } diff --git a/matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response.ts index c617226..e7c0c28 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response.ts @@ -10,14 +10,14 @@ * Do not edit the class manually. */ import { UserJsonld } from './userJsonld'; -import { ApiContactsGetCollection200ResponseHydraSearch } from './apiContactsGetCollection200ResponseHydraSearch'; -import { ApiContactsGetCollection200ResponseHydraView } from './apiContactsGetCollection200ResponseHydraView'; +import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; +import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; export interface ApiUsersGetCollection200Response { 'hydra:member': Array; 'hydra:totalItems'?: number; - 'hydra:view'?: ApiContactsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch; + 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; + 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; } diff --git a/matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response1.ts index 501e965..e44b027 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response1.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response1.ts @@ -9,7 +9,7 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ApiContactsGetCollection200Response1Links } from './apiContactsGetCollection200Response1Links'; +import { ApiCommentsGetCollection200Response1Links } from './apiCommentsGetCollection200Response1Links'; import { UserJsonhal } from './userJsonhal'; @@ -17,6 +17,6 @@ export interface ApiUsersGetCollection200Response1 { _embedded: Array; totalItems?: number; itemsPerPage?: number; - _links: ApiContactsGetCollection200Response1Links; + _links: ApiCommentsGetCollection200Response1Links; } diff --git a/matsen-tool/src/app/core/api/v1/model/comment.ts b/matsen-tool/src/app/core/api/v1/model/comment.ts new file mode 100644 index 0000000..289f880 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/comment.ts @@ -0,0 +1,24 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface Comment { + message: string | null; + owner?: string | null; + readonly ownerName?: string | null; + posting?: string | null; + readonly createdAt?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/commentJsonhal.ts b/matsen-tool/src/app/core/api/v1/model/commentJsonhal.ts new file mode 100644 index 0000000..04d7de5 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/commentJsonhal.ts @@ -0,0 +1,26 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { CommentJsonhalLinks } from './commentJsonhalLinks'; + + +/** + * + */ +export interface CommentJsonhal { + _links?: CommentJsonhalLinks; + message: string | null; + owner?: string | null; + readonly ownerName?: string | null; + posting?: string | null; + readonly createdAt?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/commentJsonhalLinks.ts b/matsen-tool/src/app/core/api/v1/model/commentJsonhalLinks.ts new file mode 100644 index 0000000..4833278 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/commentJsonhalLinks.ts @@ -0,0 +1,18 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiCommentsGetCollection200Response1LinksSelf } from './apiCommentsGetCollection200Response1LinksSelf'; + + +export interface CommentJsonhalLinks { + self?: ApiCommentsGetCollection200Response1LinksSelf; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/commentJsonld.ts b/matsen-tool/src/app/core/api/v1/model/commentJsonld.ts new file mode 100644 index 0000000..faffb8a --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/commentJsonld.ts @@ -0,0 +1,27 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface CommentJsonld { + context?: string | null; + readonly id?: string; + readonly type?: string; + message: string | null; + owner?: string | null; + readonly ownerName?: string | null; + posting?: string | null; + readonly createdAt?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/contact.ts b/matsen-tool/src/app/core/api/v1/model/contact.ts index 6ffc358..95eab01 100644 --- a/matsen-tool/src/app/core/api/v1/model/contact.ts +++ b/matsen-tool/src/app/core/api/v1/model/contact.ts @@ -24,6 +24,7 @@ export interface Contact { position?: string | null; phone?: string | null; email?: string | null; + postings?: Array; createdAt?: string | null; } diff --git a/matsen-tool/src/app/core/api/v1/model/contactJsonhal.ts b/matsen-tool/src/app/core/api/v1/model/contactJsonhal.ts index 07d6527..20e1825 100644 --- a/matsen-tool/src/app/core/api/v1/model/contactJsonhal.ts +++ b/matsen-tool/src/app/core/api/v1/model/contactJsonhal.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ContactJsonhalLinks } from './contactJsonhalLinks'; +import { CommentJsonhalLinks } from './commentJsonhalLinks'; /** * */ export interface ContactJsonhal { - _links?: ContactJsonhalLinks; + _links?: CommentJsonhalLinks; firstName: string | null; lastName: string | null; partner?: string | null; @@ -26,6 +26,7 @@ export interface ContactJsonhal { position?: string | null; phone?: string | null; email?: string | null; + postings?: Array; createdAt?: string | null; } diff --git a/matsen-tool/src/app/core/api/v1/model/contactJsonld.ts b/matsen-tool/src/app/core/api/v1/model/contactJsonld.ts index ffd9cf3..54abb42 100644 --- a/matsen-tool/src/app/core/api/v1/model/contactJsonld.ts +++ b/matsen-tool/src/app/core/api/v1/model/contactJsonld.ts @@ -27,6 +27,7 @@ export interface ContactJsonld { position?: string | null; phone?: string | null; email?: string | null; + postings?: Array; createdAt?: string | null; } diff --git a/matsen-tool/src/app/core/api/v1/model/mediaObjectJsonhalMediaObjectRead.ts b/matsen-tool/src/app/core/api/v1/model/mediaObjectJsonhalMediaObjectRead.ts index 051f09a..8224c33 100644 --- a/matsen-tool/src/app/core/api/v1/model/mediaObjectJsonhalMediaObjectRead.ts +++ b/matsen-tool/src/app/core/api/v1/model/mediaObjectJsonhalMediaObjectRead.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ContactJsonhalLinks } from './contactJsonhalLinks'; +import { CommentJsonhalLinks } from './commentJsonhalLinks'; /** * */ export interface MediaObjectJsonhalMediaObjectRead { - _links?: ContactJsonhalLinks; + _links?: CommentJsonhalLinks; contentUrl?: string | null; } diff --git a/matsen-tool/src/app/core/api/v1/model/models.ts b/matsen-tool/src/app/core/api/v1/model/models.ts index c32fd04..4cbbab4 100644 --- a/matsen-tool/src/app/core/api/v1/model/models.ts +++ b/matsen-tool/src/app/core/api/v1/model/models.ts @@ -1,10 +1,12 @@ +export * from './apiCommentsGetCollection200Response'; +export * from './apiCommentsGetCollection200Response1'; +export * from './apiCommentsGetCollection200Response1Links'; +export * from './apiCommentsGetCollection200Response1LinksSelf'; +export * from './apiCommentsGetCollection200ResponseHydraSearch'; +export * from './apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner'; +export * from './apiCommentsGetCollection200ResponseHydraView'; export * from './apiContactsGetCollection200Response'; export * from './apiContactsGetCollection200Response1'; -export * from './apiContactsGetCollection200Response1Links'; -export * from './apiContactsGetCollection200Response1LinksSelf'; -export * from './apiContactsGetCollection200ResponseHydraSearch'; -export * from './apiContactsGetCollection200ResponseHydraSearchHydraMappingInner'; -export * from './apiContactsGetCollection200ResponseHydraView'; export * from './apiMediaObjectsGetCollection200Response'; export * from './apiMediaObjectsGetCollection200Response1'; export * from './apiPartnersGetCollection200Response'; @@ -13,9 +15,12 @@ export * from './apiPostsGetCollection200Response'; export * from './apiPostsGetCollection200Response1'; export * from './apiUsersGetCollection200Response'; export * from './apiUsersGetCollection200Response1'; +export * from './comment'; +export * from './commentJsonhal'; +export * from './commentJsonhalLinks'; +export * from './commentJsonld'; export * from './contact'; export * from './contactJsonhal'; -export * from './contactJsonhalLinks'; export * from './contactJsonld'; export * from './loginCheckPost200Response'; export * from './loginCheckPostRequest'; diff --git a/matsen-tool/src/app/core/api/v1/model/partnerJsonhal.ts b/matsen-tool/src/app/core/api/v1/model/partnerJsonhal.ts index cbefdd4..bed8381 100644 --- a/matsen-tool/src/app/core/api/v1/model/partnerJsonhal.ts +++ b/matsen-tool/src/app/core/api/v1/model/partnerJsonhal.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ContactJsonhalLinks } from './contactJsonhalLinks'; +import { CommentJsonhalLinks } from './commentJsonhalLinks'; /** * */ export interface PartnerJsonhal { - _links?: ContactJsonhalLinks; + _links?: CommentJsonhalLinks; name: string; type: PartnerJsonhal.TypeEnum; street?: string | null; diff --git a/matsen-tool/src/app/core/api/v1/model/post.ts b/matsen-tool/src/app/core/api/v1/model/post.ts index 57c1f96..a810f99 100644 --- a/matsen-tool/src/app/core/api/v1/model/post.ts +++ b/matsen-tool/src/app/core/api/v1/model/post.ts @@ -9,8 +9,7 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { Partner } from './partner'; -import { Contact } from './contact'; +import { Comment } from './comment'; /** @@ -21,8 +20,9 @@ export interface Post { message: string | null; owner?: string | null; readonly ownerName?: string | null; - partner?: Partner | null; - contact?: Contact | null; + partner?: string | null; + contact?: string | null; + comments?: Array; readonly createdAt?: string | null; } diff --git a/matsen-tool/src/app/core/api/v1/model/postJsonhal.ts b/matsen-tool/src/app/core/api/v1/model/postJsonhal.ts index 7b8e734..09febc1 100644 --- a/matsen-tool/src/app/core/api/v1/model/postJsonhal.ts +++ b/matsen-tool/src/app/core/api/v1/model/postJsonhal.ts @@ -9,22 +9,22 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ContactJsonhalLinks } from './contactJsonhalLinks'; -import { ContactJsonhal } from './contactJsonhal'; -import { PartnerJsonhal } from './partnerJsonhal'; +import { CommentJsonhalLinks } from './commentJsonhalLinks'; +import { CommentJsonhal } from './commentJsonhal'; /** * */ export interface PostJsonhal { - _links?: ContactJsonhalLinks; + _links?: CommentJsonhalLinks; headline: string | null; message: string | null; owner?: string | null; readonly ownerName?: string | null; - partner?: PartnerJsonhal | null; - contact?: ContactJsonhal | null; + partner?: string | null; + contact?: string | null; + comments?: Array; readonly createdAt?: string | null; } diff --git a/matsen-tool/src/app/core/api/v1/model/postJsonld.ts b/matsen-tool/src/app/core/api/v1/model/postJsonld.ts index 4e93f08..dd1d58e 100644 --- a/matsen-tool/src/app/core/api/v1/model/postJsonld.ts +++ b/matsen-tool/src/app/core/api/v1/model/postJsonld.ts @@ -9,8 +9,7 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ContactJsonld } from './contactJsonld'; -import { PartnerJsonld } from './partnerJsonld'; +import { CommentJsonld } from './commentJsonld'; /** @@ -24,8 +23,9 @@ export interface PostJsonld { message: string | null; owner?: string | null; readonly ownerName?: string | null; - partner?: PartnerJsonld | null; - contact?: ContactJsonld | null; + partner?: string | null; + contact?: string | null; + comments?: Array; readonly createdAt?: string | null; } diff --git a/matsen-tool/src/app/core/api/v1/model/user.ts b/matsen-tool/src/app/core/api/v1/model/user.ts index b4a65c3..b50dc40 100644 --- a/matsen-tool/src/app/core/api/v1/model/user.ts +++ b/matsen-tool/src/app/core/api/v1/model/user.ts @@ -23,7 +23,7 @@ export interface User { */ password?: string | null; active?: boolean; - readonly createdAt?: string | null; postings?: Array; + readonly createdAt?: string | null; } diff --git a/matsen-tool/src/app/core/api/v1/model/userJsonhal.ts b/matsen-tool/src/app/core/api/v1/model/userJsonhal.ts index 3f9b13e..0aeb6e8 100644 --- a/matsen-tool/src/app/core/api/v1/model/userJsonhal.ts +++ b/matsen-tool/src/app/core/api/v1/model/userJsonhal.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ContactJsonhalLinks } from './contactJsonhalLinks'; +import { CommentJsonhalLinks } from './commentJsonhalLinks'; /** * */ export interface UserJsonhal { - _links?: ContactJsonhalLinks; + _links?: CommentJsonhalLinks; email: string | null; firstName: string | null; lastName: string | null; @@ -25,7 +25,7 @@ export interface UserJsonhal { */ password?: string | null; active?: boolean; - readonly createdAt?: string | null; postings?: Array; + readonly createdAt?: string | null; } diff --git a/matsen-tool/src/app/core/api/v1/model/userJsonld.ts b/matsen-tool/src/app/core/api/v1/model/userJsonld.ts index 28109b9..44a09aa 100644 --- a/matsen-tool/src/app/core/api/v1/model/userJsonld.ts +++ b/matsen-tool/src/app/core/api/v1/model/userJsonld.ts @@ -26,7 +26,7 @@ export interface UserJsonld { */ password?: string | null; active?: boolean; - readonly createdAt?: string | null; postings?: Array; + readonly createdAt?: string | null; } diff --git a/matsen-tool/src/app/partners/partners-detail/partners-detail.component.html b/matsen-tool/src/app/partners/partners-detail/partners-detail.component.html index 6089edf..2ea539e 100644 --- a/matsen-tool/src/app/partners/partners-detail/partners-detail.component.html +++ b/matsen-tool/src/app/partners/partners-detail/partners-detail.component.html @@ -144,31 +144,19 @@ -
-
-
-

04.10.2023

-

Jan Hansen

-
-
-

Leider geht er mobil selten dran. Eher E-Mails schicken!

+
+
+
+
+

{{ comment.createdAt | date:'dd.MM.YYYY hh:mm' }}

+

{{ comment.ownerName }}

+
+
+

{{ comment.message }}

+
-
-
-
-

02.10.2023

-

Florian Eisenmenger

-
-
-

Ich habe mit FAX die besten Erfahrungen gemacht...

-
-
-
-
-
+ \ No newline at end of file