Sfoglia il codice sorgente

comments on posts

master
Daniel 2 anni fa
parent
commit
4d88c7f7d6
39 ha cambiato i file con 1286 aggiunte e 160 eliminazioni
  1. +445
    -60
      matsen-tool/openapi.yaml
  2. +25
    -9
      matsen-tool/src/app/_helpers/property.interceptor.ts
  3. +12
    -6
      matsen-tool/src/app/core/api/v1/.openapi-generator/FILES
  4. +3
    -1
      matsen-tool/src/app/core/api/v1/api/api.ts
  5. +479
    -0
      matsen-tool/src/app/core/api/v1/api/comment.service.ts
  6. +23
    -0
      matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response.ts
  7. +22
    -0
      matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1.ts
  8. +22
    -0
      matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1Links.ts
  9. +17
    -0
      matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1LinksSelf.ts
  10. +21
    -0
      matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraSearch.ts
  11. +20
    -0
      matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner.ts
  12. +22
    -0
      matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraView.ts
  13. +4
    -4
      matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response.ts
  14. +2
    -2
      matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response1.ts
  15. +4
    -4
      matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts
  16. +2
    -2
      matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response1.ts
  17. +4
    -4
      matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response.ts
  18. +2
    -2
      matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response1.ts
  19. +4
    -4
      matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response.ts
  20. +2
    -2
      matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response1.ts
  21. +4
    -4
      matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response.ts
  22. +2
    -2
      matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response1.ts
  23. +24
    -0
      matsen-tool/src/app/core/api/v1/model/comment.ts
  24. +26
    -0
      matsen-tool/src/app/core/api/v1/model/commentJsonhal.ts
  25. +18
    -0
      matsen-tool/src/app/core/api/v1/model/commentJsonhalLinks.ts
  26. +27
    -0
      matsen-tool/src/app/core/api/v1/model/commentJsonld.ts
  27. +1
    -0
      matsen-tool/src/app/core/api/v1/model/contact.ts
  28. +3
    -2
      matsen-tool/src/app/core/api/v1/model/contactJsonhal.ts
  29. +1
    -0
      matsen-tool/src/app/core/api/v1/model/contactJsonld.ts
  30. +2
    -2
      matsen-tool/src/app/core/api/v1/model/mediaObjectJsonhalMediaObjectRead.ts
  31. +11
    -6
      matsen-tool/src/app/core/api/v1/model/models.ts
  32. +2
    -2
      matsen-tool/src/app/core/api/v1/model/partnerJsonhal.ts
  33. +4
    -4
      matsen-tool/src/app/core/api/v1/model/post.ts
  34. +6
    -6
      matsen-tool/src/app/core/api/v1/model/postJsonhal.ts
  35. +4
    -4
      matsen-tool/src/app/core/api/v1/model/postJsonld.ts
  36. +1
    -1
      matsen-tool/src/app/core/api/v1/model/user.ts
  37. +3
    -3
      matsen-tool/src/app/core/api/v1/model/userJsonhal.ts
  38. +1
    -1
      matsen-tool/src/app/core/api/v1/model/userJsonld.ts
  39. +11
    -23
      matsen-tool/src/app/partners/partners-detail/partners-detail.component.html

+ 445
- 60
matsen-tool/openapi.yaml Vedi File

@@ -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: { }


+ 25
- 9
matsen-tool/src/app/_helpers/property.interceptor.ts Vedi File

@@ -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;
}
}

+ 12
- 6
matsen-tool/src/app/core/api/v1/.openapi-generator/FILES Vedi File

@@ -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


+ 3
- 1
matsen-tool/src/app/core/api/v1/api/api.ts Vedi File

@@ -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];

+ 479
- 0
matsen-tool/src/app/core/api/v1/api/comment.service.ts Vedi File

@@ -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<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}): 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}): 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}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>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<ApiCommentsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>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<any>;
public commentsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
public commentsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
public commentsIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
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<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>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<CommentJsonld>;
public commentsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<CommentJsonld>>;
public commentsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<CommentJsonld>>;
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<any> {
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<CommentJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>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<CommentJsonld>;
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<HttpResponse<CommentJsonld>>;
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<HttpEvent<CommentJsonld>>;
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<any> {
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<CommentJsonld>('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: comment,
responseType: <any>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<CommentJsonld>;
public commentsPost(commentJsonld: CommentJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpResponse<CommentJsonld>>;
public commentsPost(commentJsonld: CommentJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext}): Observable<HttpEvent<CommentJsonld>>;
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<any> {
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<CommentJsonld>('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: commentJsonld,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
reportProgress: reportProgress
}
);
}

}

+ 23
- 0
matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response.ts Vedi File

@@ -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<CommentJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView;
'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch;
}


+ 22
- 0
matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1.ts Vedi File

@@ -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<CommentJsonhal>;
totalItems?: number;
itemsPerPage?: number;
_links: ApiCommentsGetCollection200Response1Links;
}


+ 22
- 0
matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1Links.ts Vedi File

@@ -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;
}


+ 17
- 0
matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200Response1LinksSelf.ts Vedi File

@@ -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;
}


+ 21
- 0
matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraSearch.ts Vedi File

@@ -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<ApiCommentsGetCollection200ResponseHydraSearchHydraMappingInner>;
}


+ 20
- 0
matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner.ts Vedi File

@@ -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;
}


+ 22
- 0
matsen-tool/src/app/core/api/v1/model/apiCommentsGetCollection200ResponseHydraView.ts Vedi File

@@ -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;
}


+ 4
- 4
matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response.ts Vedi File

@@ -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<ContactJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiContactsGetCollection200ResponseHydraView;
'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch;
'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView;
'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch;
}


+ 2
- 2
matsen-tool/src/app/core/api/v1/model/apiContactsGetCollection200Response1.ts Vedi File

@@ -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<ContactJsonhal>;
totalItems?: number;
itemsPerPage?: number;
_links: ApiContactsGetCollection200Response1Links;
_links: ApiCommentsGetCollection200Response1Links;
}


+ 4
- 4
matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts Vedi File

@@ -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<MediaObjectJsonldMediaObjectRead>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiContactsGetCollection200ResponseHydraView;
'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch;
'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView;
'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch;
}


+ 2
- 2
matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response1.ts Vedi File

@@ -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<MediaObjectJsonhalMediaObjectRead>;
totalItems?: number;
itemsPerPage?: number;
_links: ApiContactsGetCollection200Response1Links;
_links: ApiCommentsGetCollection200Response1Links;
}


+ 4
- 4
matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response.ts Vedi File

@@ -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<PartnerJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiContactsGetCollection200ResponseHydraView;
'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch;
'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView;
'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch;
}


+ 2
- 2
matsen-tool/src/app/core/api/v1/model/apiPartnersGetCollection200Response1.ts Vedi File

@@ -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<PartnerJsonhal>;
totalItems?: number;
itemsPerPage?: number;
_links: ApiContactsGetCollection200Response1Links;
_links: ApiCommentsGetCollection200Response1Links;
}


+ 4
- 4
matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response.ts Vedi File

@@ -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<PostJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiContactsGetCollection200ResponseHydraView;
'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch;
'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView;
'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch;
}


+ 2
- 2
matsen-tool/src/app/core/api/v1/model/apiPostsGetCollection200Response1.ts Vedi File

@@ -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<PostJsonhal>;
totalItems?: number;
itemsPerPage?: number;
_links: ApiContactsGetCollection200Response1Links;
_links: ApiCommentsGetCollection200Response1Links;
}


+ 4
- 4
matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response.ts Vedi File

@@ -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<UserJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiContactsGetCollection200ResponseHydraView;
'hydra:search'?: ApiContactsGetCollection200ResponseHydraSearch;
'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView;
'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch;
}


+ 2
- 2
matsen-tool/src/app/core/api/v1/model/apiUsersGetCollection200Response1.ts Vedi File

@@ -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<UserJsonhal>;
totalItems?: number;
itemsPerPage?: number;
_links: ApiContactsGetCollection200Response1Links;
_links: ApiCommentsGetCollection200Response1Links;
}


+ 24
- 0
matsen-tool/src/app/core/api/v1/model/comment.ts Vedi File

@@ -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;
}


+ 26
- 0
matsen-tool/src/app/core/api/v1/model/commentJsonhal.ts Vedi File

@@ -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;
}


+ 18
- 0
matsen-tool/src/app/core/api/v1/model/commentJsonhalLinks.ts Vedi File

@@ -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;
}


+ 27
- 0
matsen-tool/src/app/core/api/v1/model/commentJsonld.ts Vedi File

@@ -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;
}


+ 1
- 0
matsen-tool/src/app/core/api/v1/model/contact.ts Vedi File

@@ -24,6 +24,7 @@ export interface Contact {
position?: string | null;
phone?: string | null;
email?: string | null;
postings?: Array<string>;
createdAt?: string | null;
}


+ 3
- 2
matsen-tool/src/app/core/api/v1/model/contactJsonhal.ts Vedi File

@@ -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<string>;
createdAt?: string | null;
}


+ 1
- 0
matsen-tool/src/app/core/api/v1/model/contactJsonld.ts Vedi File

@@ -27,6 +27,7 @@ export interface ContactJsonld {
position?: string | null;
phone?: string | null;
email?: string | null;
postings?: Array<string>;
createdAt?: string | null;
}


+ 2
- 2
matsen-tool/src/app/core/api/v1/model/mediaObjectJsonhalMediaObjectRead.ts Vedi File

@@ -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;
}


+ 11
- 6
matsen-tool/src/app/core/api/v1/model/models.ts Vedi File

@@ -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';


+ 2
- 2
matsen-tool/src/app/core/api/v1/model/partnerJsonhal.ts Vedi File

@@ -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;


+ 4
- 4
matsen-tool/src/app/core/api/v1/model/post.ts Vedi File

@@ -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<Comment>;
readonly createdAt?: string | null;
}


+ 6
- 6
matsen-tool/src/app/core/api/v1/model/postJsonhal.ts Vedi File

@@ -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<CommentJsonhal>;
readonly createdAt?: string | null;
}


+ 4
- 4
matsen-tool/src/app/core/api/v1/model/postJsonld.ts Vedi File

@@ -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<CommentJsonld>;
readonly createdAt?: string | null;
}


+ 1
- 1
matsen-tool/src/app/core/api/v1/model/user.ts Vedi File

@@ -23,7 +23,7 @@ export interface User {
*/
password?: string | null;
active?: boolean;
readonly createdAt?: string | null;
postings?: Array<string>;
readonly createdAt?: string | null;
}


+ 3
- 3
matsen-tool/src/app/core/api/v1/model/userJsonhal.ts Vedi File

@@ -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<string>;
readonly createdAt?: string | null;
}


+ 1
- 1
matsen-tool/src/app/core/api/v1/model/userJsonld.ts Vedi File

@@ -26,7 +26,7 @@ export interface UserJsonld {
*/
password?: string | null;
active?: boolean;
readonly createdAt?: string | null;
postings?: Array<string>;
readonly createdAt?: string | null;
}


+ 11
- 23
matsen-tool/src/app/partners/partners-detail/partners-detail.component.html Vedi File

@@ -144,31 +144,19 @@
</div>
</div>
</div>
<div class="card ms-5">
<div class="card-body">
<div class="d-flex justify-content-between align-items-center">
<p>04.10.2023</p>
<p>Jan Hansen</p>
</div>
<div>
<p>Leider geht er mobil selten dran. Eher E-Mails schicken!</p>
<div *ngFor="let comment of post.comments">
<div class="card ms-5">
<div class="card-body">
<div class="d-flex justify-content-between align-items-center">
<p>{{ comment.createdAt | date:'dd.MM.YYYY hh:mm' }}</p>
<p>{{ comment.ownerName }}</p>
</div>
<div>
<p>{{ comment.message }}</p>
</div>
</div>
</div>
</div>
<div class="card ms-5">
<div class="card-body">
<div class="d-flex justify-content-between align-items-center">
<p>02.10.2023</p>
<p>Florian Eisenmenger</p>
</div>
<div>
<p>Ich habe mit FAX die besten Erfahrungen gemacht...</p>
</div>
</div>
</div>
<div class="d-flex justify-content-end">
<a routerLink="#" class="badge bg-secondary">Kommentieren</a>
</div>
</div>
</div>
<mat-paginator *ngIf="posts.length > 0" class="mb-4" [length]="postsLength"
@@ -177,4 +165,4 @@
[pageIndex]="postsPageIndex"
showFirstLastButtons>
</mat-paginator>
</div>
</div>

Caricamento…
Annulla
Salva