From ed44f6ff9b68609c127147559a483ee045d64969 Mon Sep 17 00:00:00 2001 From: Florian Eisenmenger Date: Tue, 19 Mar 2024 16:48:57 +0100 Subject: [PATCH] openapi --- matsen-tool/openapi.json | 2 +- matsen-tool/openapi.yaml | 2440 ++++++++++++----- matsen-tool/src/app/_forms/apiForms.ts | 111 +- .../app/core/api/v1/.openapi-generator/FILES | 18 + matsen-tool/src/app/core/api/v1/api/api.ts | 8 +- .../src/app/core/api/v1/api/sale.service.ts | 533 ++++ .../core/api/v1/api/saleSummary.service.ts | 182 ++ .../app/core/api/v1/api/taskNote.service.ts | 521 ++++ ...piSaleSummariesGetCollection200Response.ts | 23 + ...iSaleSummariesGetCollection200Response1.ts | 22 + .../model/apiSalesGetCollection200Response.ts | 23 + .../apiSalesGetCollection200Response1.ts | 22 + .../apiTaskNotesGetCollection200Response.ts | 23 + .../apiTaskNotesGetCollection200Response1.ts | 22 + .../src/app/core/api/v1/model/comment.ts | 2 +- .../app/core/api/v1/model/commentJsonhal.ts | 2 +- .../app/core/api/v1/model/commentJsonld.ts | 2 +- .../src/app/core/api/v1/model/models.ts | 15 + .../src/app/core/api/v1/model/partner.ts | 3 + .../app/core/api/v1/model/partnerJsonhal.ts | 3 + .../app/core/api/v1/model/partnerJsonld.ts | 3 + matsen-tool/src/app/core/api/v1/model/post.ts | 3 +- .../src/app/core/api/v1/model/postJsonhal.ts | 3 +- .../api/v1/model/postJsonhalPostingCreate.ts | 1 + .../src/app/core/api/v1/model/postJsonld.ts | 3 +- .../api/v1/model/postJsonldPostingCreate.ts | 1 + .../core/api/v1/model/postPostingCreate.ts | 1 + matsen-tool/src/app/core/api/v1/model/sale.ts | 33 + .../src/app/core/api/v1/model/saleJsonhal.ts | 35 + .../src/app/core/api/v1/model/saleJsonld.ts | 37 + .../src/app/core/api/v1/model/saleSummary.ts | 23 + .../core/api/v1/model/saleSummaryJsonhal.ts | 25 + .../core/api/v1/model/saleSummaryJsonld.ts | 25 + matsen-tool/src/app/core/api/v1/model/task.ts | 7 +- .../src/app/core/api/v1/model/taskJsonhal.ts | 7 +- .../src/app/core/api/v1/model/taskJsonld.ts | 7 +- .../src/app/core/api/v1/model/taskNote.ts | 24 + .../app/core/api/v1/model/taskNoteJsonhal.ts | 26 + .../app/core/api/v1/model/taskNoteJsonld.ts | 28 + 39 files changed, 3590 insertions(+), 679 deletions(-) create mode 100644 matsen-tool/src/app/core/api/v1/api/sale.service.ts create mode 100644 matsen-tool/src/app/core/api/v1/api/saleSummary.service.ts create mode 100644 matsen-tool/src/app/core/api/v1/api/taskNote.service.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/apiSaleSummariesGetCollection200Response.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/apiSaleSummariesGetCollection200Response1.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/apiSalesGetCollection200Response.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/apiSalesGetCollection200Response1.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/apiTaskNotesGetCollection200Response.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/apiTaskNotesGetCollection200Response1.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/sale.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/saleJsonhal.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/saleJsonld.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/saleSummary.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/saleSummaryJsonhal.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/saleSummaryJsonld.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/taskNote.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/taskNoteJsonhal.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/taskNoteJsonld.ts diff --git a/matsen-tool/openapi.json b/matsen-tool/openapi.json index 76dd370..b2789c6 100644 --- a/matsen-tool/openapi.json +++ b/matsen-tool/openapi.json @@ -1 +1 @@ -{"openapi":"3.1.0","info":{"title":"Matsen API Platform","description":"","version":"1.0.0"},"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","tags":["Contact"],"responses":{"200":{"description":"Contact collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Contact.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\/Contact"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Contact"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Contact.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 Contact resources.","description":"Retrieves the collection of Contact 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},{"name":"partner","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"partner[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_contacts_post","tags":["Contact"],"responses":{"201":{"description":"Contact resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Contact resource.","description":"Creates a Contact resource.","parameters":[],"requestBody":{"description":"The new Contact resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/contacts\/{id}":{"get":{"operationId":"api_contacts_id_get","tags":["Contact"],"responses":{"200":{"description":"Contact resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Contact resource.","description":"Retrieves a Contact resource.","parameters":[{"name":"id","in":"path","description":"ContactApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_contacts_id_delete","tags":["Contact"],"responses":{"204":{"description":"Contact resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Contact resource.","description":"Removes the Contact resource.","parameters":[{"name":"id","in":"path","description":"ContactApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_contacts_id_patch","tags":["Contact"],"responses":{"200":{"description":"Contact resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Contact resource.","description":"Updates the Contact resource.","parameters":[{"name":"id","in":"path","description":"ContactApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Contact resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Contact"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/medias":{"get":{"operationId":"api_medias_get_collection","tags":["Media"],"responses":{"200":{"description":"Media collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Media.jsonld-media_object.read"}},"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\/Media-media_object.read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Media-media_object.read"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Media.jsonhal-media_object.read"}},"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 Media resources.","description":"Retrieves the collection of Media 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_medias_post","tags":["Media"],"responses":{"201":{"description":"Media resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Media.jsonld-media_object.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Media-media_object.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Media-media_object.read"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Media.jsonhal-media_object.read"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Media resource.","description":"Creates a Media resource.","parameters":[],"requestBody":{"description":"","content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"required":false},"deprecated":false},"parameters":[]},"\/api\/medias\/{id}":{"get":{"operationId":"api_medias_id_get","tags":["Media"],"responses":{"200":{"description":"Media resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Media.jsonld-media_object.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Media-media_object.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Media-media_object.read"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Media.jsonhal-media_object.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Media resource.","description":"Retrieves a Media resource.","parameters":[{"name":"id","in":"path","description":"MediaObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_medias_id_delete","tags":["Media"],"responses":{"204":{"description":"Media resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Media resource.","description":"Removes the Media resource.","parameters":[{"name":"id","in":"path","description":"MediaObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/partners":{"get":{"operationId":"api_partners_get_collection","tags":["Partner"],"responses":{"200":{"description":"Partner collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Partner.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\/Partner"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Partner"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Partner.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 Partner resources.","description":"Retrieves the collection of Partner 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},{"name":"type","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"type[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"order[name]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string","enum":["asc","desc"]},"style":"form","explode":false,"allowReserved":false},{"name":"order[city]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string","enum":["asc","desc"]},"style":"form","explode":false,"allowReserved":false},{"name":"order[website]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string","enum":["asc","desc"]},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_partners_post","tags":["Partner"],"responses":{"201":{"description":"Partner resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Partner resource.","description":"Creates a Partner resource.","parameters":[],"requestBody":{"description":"The new Partner resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/partners\/{id}":{"get":{"operationId":"api_partners_id_get","tags":["Partner"],"responses":{"200":{"description":"Partner resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Partner resource.","description":"Retrieves a Partner resource.","parameters":[{"name":"id","in":"path","description":"PartnerApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_partners_id_delete","tags":["Partner"],"responses":{"204":{"description":"Partner resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Partner resource.","description":"Removes the Partner resource.","parameters":[{"name":"id","in":"path","description":"PartnerApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_partners_id_patch","tags":["Partner"],"responses":{"200":{"description":"Partner resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Partner resource.","description":"Updates the Partner resource.","parameters":[{"name":"id","in":"path","description":"PartnerApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Partner resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Partner"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/posts":{"get":{"operationId":"api_posts_get_collection","tags":["Post"],"responses":{"200":{"description":"Post collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Post.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\/Post"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Post"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Post.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 Post resources.","description":"Retrieves the collection of Post 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},{"name":"partner","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"partner[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"contact","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"contact[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_posts_post","tags":["Post"],"responses":{"201":{"description":"Post resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Post resource.","description":"Creates a Post resource.","parameters":[],"requestBody":{"description":"The new Post resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonld-posting.create"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Post-posting.create"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Post-posting.create"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonhal-posting.create"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/posts\/{id}":{"get":{"operationId":"api_posts_id_get","tags":["Post"],"responses":{"200":{"description":"Post resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Post resource.","description":"Retrieves a Post resource.","parameters":[{"name":"id","in":"path","description":"PostingApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_posts_id_delete","tags":["Post"],"responses":{"204":{"description":"Post resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Post resource.","description":"Removes the Post resource.","parameters":[{"name":"id","in":"path","description":"PostingApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_posts_id_patch","tags":["Post"],"responses":{"200":{"description":"Post resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Post resource.","description":"Updates the Post resource.","parameters":[{"name":"id","in":"path","description":"PostingApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Post resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Post-posting.patch"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/products":{"get":{"operationId":"api_products_get_collection","tags":["Product"],"responses":{"200":{"description":"Product collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Product.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\/Product"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Product"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Product.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 Product resources.","description":"Retrieves the collection of Product 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},{"name":"order[name]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string","enum":["asc","desc"]},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_products_post","tags":["Product"],"responses":{"201":{"description":"Product resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Product resource.","description":"Creates a Product resource.","parameters":[],"requestBody":{"description":"The new Product resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/products\/{id}":{"get":{"operationId":"api_products_id_get","tags":["Product"],"responses":{"200":{"description":"Product resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Product resource.","description":"Retrieves a Product resource.","parameters":[{"name":"id","in":"path","description":"ProductApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_products_id_delete","tags":["Product"],"responses":{"204":{"description":"Product resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Product resource.","description":"Removes the Product resource.","parameters":[{"name":"id","in":"path","description":"ProductApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_products_id_patch","tags":["Product"],"responses":{"200":{"description":"Product resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Product resource.","description":"Updates the Product resource.","parameters":[{"name":"id","in":"path","description":"ProductApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Product resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Product"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/tasks":{"get":{"operationId":"api_tasks_get_collection","tags":["Task"],"responses":{"200":{"description":"Task collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Task.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\/Task"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Task"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Task.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 Task resources.","description":"Retrieves the collection of Task 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},{"name":"partner","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"partner[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"contact","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"contact[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_tasks_post","tags":["Task"],"responses":{"201":{"description":"Task resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Task resource.","description":"Creates a Task resource.","parameters":[],"requestBody":{"description":"The new Task resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/tasks\/{id}":{"get":{"operationId":"api_tasks_id_get","tags":["Task"],"responses":{"200":{"description":"Task resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Task resource.","description":"Retrieves a Task resource.","parameters":[{"name":"id","in":"path","description":"TaskApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_tasks_id_delete","tags":["Task"],"responses":{"204":{"description":"Task resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Task resource.","description":"Removes the Task resource.","parameters":[{"name":"id","in":"path","description":"TaskApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_tasks_id_patch","tags":["Task"],"responses":{"200":{"description":"Task resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Task resource.","description":"Updates the Task resource.","parameters":[{"name":"id","in":"path","description":"TaskApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Task resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Task"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/users":{"get":{"operationId":"api_users_get_collection","tags":["User"],"responses":{"200":{"description":"User collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.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\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.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 User resources.","description":"Retrieves the collection of User 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_users_post","tags":["User"],"responses":{"201":{"description":"User resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a User resource.","description":"Creates a User resource.","parameters":[],"requestBody":{"description":"The new User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/users\/{id}":{"get":{"operationId":"api_users_id_get","tags":["User"],"responses":{"200":{"description":"User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a User resource.","description":"Retrieves a User resource.","parameters":[{"name":"id","in":"path","description":"UserApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_users_id_patch","tags":["User"],"responses":{"200":{"description":"User resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the User resource.","description":"Updates the User resource.","parameters":[{"name":"id","in":"path","description":"UserApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated User resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"required":true},"deprecated":false},"parameters":[]},"\/auth":{"post":{"operationId":"login_check_post","tags":["Login Check"],"responses":{"200":{"description":"User token created","content":{"application\/json":{"schema":{"type":"object","properties":{"token":{"readOnly":true,"type":"string","nullable":false}},"required":["token"]}}}}},"summary":"Creates a user token.","description":"Creates a user token.","requestBody":{"description":"The login data","content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","nullable":false},"password":{"type":"string","nullable":false}},"required":["email","password"]}}},"required":true}},"parameters":[]}},"components":{"schemas":{"Comment":{"type":"object","description":"","deprecated":false,"required":["message"],"properties":{"message":{"type":["string","null"]},"owner":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"post":{"owl:maxCardinality":1,"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":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"post":{"owl:maxCardinality":1,"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":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"post":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Contact":{"type":"object","description":"","deprecated":false,"required":["firstName","lastName","partner"],"properties":{"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"birthday":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"position":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"posts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Contact.jsonhal":{"type":"object","description":"","deprecated":false,"required":["firstName","lastName","partner"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"birthday":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"position":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"posts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Contact.jsonld":{"type":"object","description":"","deprecated":false,"required":["firstName","lastName","partner"],"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"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"birthday":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"position":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"posts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Media-media_object.read":{"type":"object","description":"","deprecated":false,"externalDocs":{"url":"https:\/\/schema.org\/MediaObject"},"properties":{"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]}}},"Media.jsonhal-media_object.read":{"type":"object","description":"","deprecated":false,"externalDocs":{"url":"https:\/\/schema.org\/MediaObject"},"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]}}},"Media.jsonld-media_object.read":{"type":"object","description":"","deprecated":false,"externalDocs":{"url":"https:\/\/schema.org\/MediaObject"},"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"},"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]}}},"Partner":{"type":"object","description":"","deprecated":false,"required":["name","partnerType"],"properties":{"name":{"type":"string"},"partnerType":{"type":"string","enum":["customer","supplier","service"]},"street":{"type":["string","null"]},"streetNo":{"type":["string","null"]},"zip":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]},"website":{"type":["string","null"]},"logo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"logoUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"},"posts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}},"contacts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}}}},"Partner.jsonhal":{"type":"object","description":"","deprecated":false,"required":["name","partnerType"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"name":{"type":"string"},"partnerType":{"type":"string","enum":["customer","supplier","service"]},"street":{"type":["string","null"]},"streetNo":{"type":["string","null"]},"zip":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]},"website":{"type":["string","null"]},"logo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"logoUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"},"posts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}},"contacts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}}}},"Partner.jsonld":{"type":"object","description":"","deprecated":false,"required":["name","partnerType"],"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"},"name":{"type":"string"},"partnerType":{"type":"string","enum":["customer","supplier","service"]},"street":{"type":["string","null"]},"streetNo":{"type":["string","null"]},"zip":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]},"website":{"type":["string","null"]},"logo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"logoUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"},"posts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}},"contacts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}}}},"Post":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"owner":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"description":"array","type":"array","items":{"$ref":"#\/components\/schemas\/Comment"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Post-posting.create":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"}}},"Post-posting.patch":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"headline":{"type":["string","null"]},"message":{"type":["string","null"]}}},"Post.jsonhal":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"owner":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"description":"array","type":"array","items":{"$ref":"#\/components\/schemas\/Comment.jsonhal"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Post.jsonhal-posting.create":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"}}},"Post.jsonld":{"type":"object","description":"","deprecated":false,"required":["headline","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"},"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"owner":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"description":"array","type":"array","items":{"$ref":"#\/components\/schemas\/Comment.jsonld"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Post.jsonld-posting.create":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"}}},"Product":{"type":"object","description":"","deprecated":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"}}},"Product.jsonhal":{"type":"object","description":"","deprecated":false,"required":["name"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"name":{"type":"string"},"description":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"}}},"Product.jsonld":{"type":"object","description":"","deprecated":false,"required":["name"],"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"},"name":{"type":"string"},"description":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"}}},"Task":{"type":"object","description":"","deprecated":false,"required":["headline","description","assignedTo","dueAt","prio"],"properties":{"headline":{"type":["string","null"]},"description":{"type":["string","null"]},"createdBy":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdByName":{"readOnly":true,"type":["string","null"]},"assignedTo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"assignedToName":{"readOnly":true,"type":["string","null"]},"dueAt":{"type":["string","null"],"format":"date-time"},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"partnerName":{"readOnly":true,"type":["string","null"]},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contactName":{"readOnly":true,"type":["string","null"]},"prio":{"type":"string","enum":["low","medium","high"]},"completed":{"type":["boolean","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Task.jsonhal":{"type":"object","description":"","deprecated":false,"required":["headline","description","assignedTo","dueAt","prio"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"headline":{"type":["string","null"]},"description":{"type":["string","null"]},"createdBy":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdByName":{"readOnly":true,"type":["string","null"]},"assignedTo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"assignedToName":{"readOnly":true,"type":["string","null"]},"dueAt":{"type":["string","null"],"format":"date-time"},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"partnerName":{"readOnly":true,"type":["string","null"]},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contactName":{"readOnly":true,"type":["string","null"]},"prio":{"type":"string","enum":["low","medium","high"]},"completed":{"type":["boolean","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Task.jsonld":{"type":"object","description":"","deprecated":false,"required":["headline","description","assignedTo","dueAt","prio"],"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"},"headline":{"type":["string","null"]},"description":{"type":["string","null"]},"createdBy":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdByName":{"readOnly":true,"type":["string","null"]},"assignedTo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"assignedToName":{"readOnly":true,"type":["string","null"]},"dueAt":{"type":["string","null"],"format":"date-time"},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"partnerName":{"readOnly":true,"type":["string","null"]},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contactName":{"readOnly":true,"type":["string","null"]},"prio":{"type":"string","enum":["low","medium","high"]},"completed":{"type":["boolean","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"User":{"type":"object","description":"","deprecated":false,"required":["email","firstName","lastName"],"properties":{"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"password":{"writeOnly":true,"description":"The plaintext password when being set or changed.","type":["string","null"]},"active":{"type":"boolean"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"User.jsonhal":{"type":"object","description":"","deprecated":false,"required":["email","firstName","lastName"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"password":{"writeOnly":true,"description":"The plaintext password when being set or changed.","type":["string","null"]},"active":{"type":"boolean"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"User.jsonld":{"type":"object","description":"","deprecated":false,"required":["email","firstName","lastName"],"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"},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"password":{"writeOnly":true,"description":"The plaintext password when being set or changed.","type":["string","null"]},"active":{"type":"boolean"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}}},"responses":{},"parameters":{},"examples":{},"requestBodies":{},"headers":{},"securitySchemes":{"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"security":[{"JWT":[]}],"tags":[]} \ No newline at end of file +{"openapi":"3.1.0","info":{"title":"Matsen API Platform","description":"","version":"1.0.0"},"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","tags":["Contact"],"responses":{"200":{"description":"Contact collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Contact.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\/Contact"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Contact"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Contact.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 Contact resources.","description":"Retrieves the collection of Contact 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},{"name":"partner","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"partner[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_contacts_post","tags":["Contact"],"responses":{"201":{"description":"Contact resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Contact resource.","description":"Creates a Contact resource.","parameters":[],"requestBody":{"description":"The new Contact resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/contacts\/{id}":{"get":{"operationId":"api_contacts_id_get","tags":["Contact"],"responses":{"200":{"description":"Contact resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Contact resource.","description":"Retrieves a Contact resource.","parameters":[{"name":"id","in":"path","description":"ContactApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_contacts_id_delete","tags":["Contact"],"responses":{"204":{"description":"Contact resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Contact resource.","description":"Removes the Contact resource.","parameters":[{"name":"id","in":"path","description":"ContactApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_contacts_id_patch","tags":["Contact"],"responses":{"200":{"description":"Contact resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Contact"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Contact.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Contact resource.","description":"Updates the Contact resource.","parameters":[{"name":"id","in":"path","description":"ContactApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Contact resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Contact"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/medias":{"get":{"operationId":"api_medias_get_collection","tags":["Media"],"responses":{"200":{"description":"Media collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Media.jsonld-media_object.read"}},"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\/Media-media_object.read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Media-media_object.read"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Media.jsonhal-media_object.read"}},"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 Media resources.","description":"Retrieves the collection of Media 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_medias_post","tags":["Media"],"responses":{"201":{"description":"Media resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Media.jsonld-media_object.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Media-media_object.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Media-media_object.read"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Media.jsonhal-media_object.read"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Media resource.","description":"Creates a Media resource.","parameters":[],"requestBody":{"description":"","content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"required":false},"deprecated":false},"parameters":[]},"\/api\/medias\/{id}":{"get":{"operationId":"api_medias_id_get","tags":["Media"],"responses":{"200":{"description":"Media resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Media.jsonld-media_object.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Media-media_object.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Media-media_object.read"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Media.jsonhal-media_object.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Media resource.","description":"Retrieves a Media resource.","parameters":[{"name":"id","in":"path","description":"MediaObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_medias_id_delete","tags":["Media"],"responses":{"204":{"description":"Media resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Media resource.","description":"Removes the Media resource.","parameters":[{"name":"id","in":"path","description":"MediaObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/partners":{"get":{"operationId":"api_partners_get_collection","tags":["Partner"],"responses":{"200":{"description":"Partner collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Partner.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\/Partner"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Partner"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Partner.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 Partner resources.","description":"Retrieves the collection of Partner 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},{"name":"type","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"type[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"order[name]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string","enum":["asc","desc"]},"style":"form","explode":false,"allowReserved":false},{"name":"order[city]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string","enum":["asc","desc"]},"style":"form","explode":false,"allowReserved":false},{"name":"order[website]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string","enum":["asc","desc"]},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_partners_post","tags":["Partner"],"responses":{"201":{"description":"Partner resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Partner resource.","description":"Creates a Partner resource.","parameters":[],"requestBody":{"description":"The new Partner resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/partners\/{id}":{"get":{"operationId":"api_partners_id_get","tags":["Partner"],"responses":{"200":{"description":"Partner resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Partner resource.","description":"Retrieves a Partner resource.","parameters":[{"name":"id","in":"path","description":"PartnerApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_partners_id_delete","tags":["Partner"],"responses":{"204":{"description":"Partner resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Partner resource.","description":"Removes the Partner resource.","parameters":[{"name":"id","in":"path","description":"PartnerApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_partners_id_patch","tags":["Partner"],"responses":{"200":{"description":"Partner resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Partner"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Partner.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Partner resource.","description":"Updates the Partner resource.","parameters":[{"name":"id","in":"path","description":"PartnerApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Partner resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Partner"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/posts":{"get":{"operationId":"api_posts_get_collection","tags":["Post"],"responses":{"200":{"description":"Post collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Post.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\/Post"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Post"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Post.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 Post resources.","description":"Retrieves the collection of Post 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},{"name":"partner","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"partner[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"contact","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"contact[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_posts_post","tags":["Post"],"responses":{"201":{"description":"Post resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Post resource.","description":"Creates a Post resource.","parameters":[],"requestBody":{"description":"The new Post resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonld-posting.create"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Post-posting.create"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Post-posting.create"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonhal-posting.create"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/posts\/{id}":{"get":{"operationId":"api_posts_id_get","tags":["Post"],"responses":{"200":{"description":"Post resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Post resource.","description":"Retrieves a Post resource.","parameters":[{"name":"id","in":"path","description":"PostingApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_posts_id_delete","tags":["Post"],"responses":{"204":{"description":"Post resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Post resource.","description":"Removes the Post resource.","parameters":[{"name":"id","in":"path","description":"PostingApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_posts_id_patch","tags":["Post"],"responses":{"200":{"description":"Post resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Post"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Post.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Post resource.","description":"Updates the Post resource.","parameters":[{"name":"id","in":"path","description":"PostingApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Post resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Post-posting.patch"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/products":{"get":{"operationId":"api_products_get_collection","tags":["Product"],"responses":{"200":{"description":"Product collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Product.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\/Product"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Product"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Product.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 Product resources.","description":"Retrieves the collection of Product 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},{"name":"order[name]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string","enum":["asc","desc"]},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_products_post","tags":["Product"],"responses":{"201":{"description":"Product resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Product resource.","description":"Creates a Product resource.","parameters":[],"requestBody":{"description":"The new Product resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/products\/{id}":{"get":{"operationId":"api_products_id_get","tags":["Product"],"responses":{"200":{"description":"Product resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Product resource.","description":"Retrieves a Product resource.","parameters":[{"name":"id","in":"path","description":"ProductApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_products_id_delete","tags":["Product"],"responses":{"204":{"description":"Product resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Product resource.","description":"Removes the Product resource.","parameters":[{"name":"id","in":"path","description":"ProductApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_products_id_patch","tags":["Product"],"responses":{"200":{"description":"Product resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Product"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Product.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Product resource.","description":"Updates the Product resource.","parameters":[{"name":"id","in":"path","description":"ProductApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Product resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Product"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/sale_summaries":{"get":{"operationId":"api_sale_summaries_get_collection","tags":["SaleSummary"],"responses":{"200":{"description":"SaleSummary collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/SaleSummary.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\/SaleSummary"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SaleSummary"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/SaleSummary.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 SaleSummary resources.","description":"Retrieves the collection of SaleSummary 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},"parameters":[]},"\/api\/sales":{"get":{"operationId":"api_sales_get_collection","tags":["Sale"],"responses":{"200":{"description":"Sale collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Sale.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\/Sale"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Sale"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Sale.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 Sale resources.","description":"Retrieves the collection of Sale 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},{"name":"owner","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"owner[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"partner","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"partner[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_sales_post","tags":["Sale"],"responses":{"201":{"description":"Sale resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Sale.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Sale"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Sale"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Sale.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Sale resource.","description":"Creates a Sale resource.","parameters":[],"requestBody":{"description":"The new Sale resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Sale.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Sale"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Sale"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Sale.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/sales\/{id}":{"get":{"operationId":"api_sales_id_get","tags":["Sale"],"responses":{"200":{"description":"Sale resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Sale.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Sale"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Sale"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Sale.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Sale resource.","description":"Retrieves a Sale resource.","parameters":[{"name":"id","in":"path","description":"SaleApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_sales_id_delete","tags":["Sale"],"responses":{"204":{"description":"Sale resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Sale resource.","description":"Removes the Sale resource.","parameters":[{"name":"id","in":"path","description":"SaleApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_sales_id_patch","tags":["Sale"],"responses":{"200":{"description":"Sale resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Sale.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Sale"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Sale"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Sale.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Sale resource.","description":"Updates the Sale resource.","parameters":[{"name":"id","in":"path","description":"SaleApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Sale resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Sale"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/task_notes":{"get":{"operationId":"api_task_notes_get_collection","tags":["TaskNote"],"responses":{"200":{"description":"TaskNote collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskNote.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\/TaskNote"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskNote"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskNote.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 TaskNote resources.","description":"Retrieves the collection of TaskNote 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},{"name":"task","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"task[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_task_notes_post","tags":["TaskNote"],"responses":{"201":{"description":"TaskNote resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/TaskNote"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a TaskNote resource.","description":"Creates a TaskNote resource.","parameters":[],"requestBody":{"description":"The new TaskNote resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/TaskNote"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/task_notes\/{id}":{"get":{"operationId":"api_task_notes_id_get","tags":["TaskNote"],"responses":{"200":{"description":"TaskNote resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/TaskNote"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a TaskNote resource.","description":"Retrieves a TaskNote resource.","parameters":[{"name":"id","in":"path","description":"TaskNoteApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_task_notes_id_delete","tags":["TaskNote"],"responses":{"204":{"description":"TaskNote resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the TaskNote resource.","description":"Removes the TaskNote resource.","parameters":[{"name":"id","in":"path","description":"TaskNoteApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_task_notes_id_patch","tags":["TaskNote"],"responses":{"200":{"description":"TaskNote resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/TaskNote"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the TaskNote resource.","description":"Updates the TaskNote resource.","parameters":[{"name":"id","in":"path","description":"TaskNoteApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated TaskNote resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/TaskNote"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/tasks":{"get":{"operationId":"api_tasks_get_collection","tags":["Task"],"responses":{"200":{"description":"Task collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Task.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\/Task"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Task"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Task.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 Task resources.","description":"Retrieves the collection of Task 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},{"name":"partner","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"partner[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"contact","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"contact[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_tasks_post","tags":["Task"],"responses":{"201":{"description":"Task resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Task resource.","description":"Creates a Task resource.","parameters":[],"requestBody":{"description":"The new Task resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/tasks\/{id}":{"get":{"operationId":"api_tasks_id_get","tags":["Task"],"responses":{"200":{"description":"Task resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Task resource.","description":"Retrieves a Task resource.","parameters":[{"name":"id","in":"path","description":"TaskApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_tasks_id_delete","tags":["Task"],"responses":{"204":{"description":"Task resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Task resource.","description":"Removes the Task resource.","parameters":[{"name":"id","in":"path","description":"TaskApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_tasks_id_patch","tags":["Task"],"responses":{"200":{"description":"Task resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Task"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Task.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Task resource.","description":"Updates the Task resource.","parameters":[{"name":"id","in":"path","description":"TaskApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Task resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Task"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/users":{"get":{"operationId":"api_users_get_collection","tags":["User"],"responses":{"200":{"description":"User collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.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\/User"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/User"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.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 User resources.","description":"Retrieves the collection of User 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_users_post","tags":["User"],"responses":{"201":{"description":"User resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a User resource.","description":"Creates a User resource.","parameters":[],"requestBody":{"description":"The new User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/users\/{id}":{"get":{"operationId":"api_users_id_get","tags":["User"],"responses":{"200":{"description":"User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a User resource.","description":"Retrieves a User resource.","parameters":[{"name":"id","in":"path","description":"UserApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_users_id_patch","tags":["User"],"responses":{"200":{"description":"User resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/User"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/User"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the User resource.","description":"Updates the User resource.","parameters":[{"name":"id","in":"path","description":"UserApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated User resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"required":true},"deprecated":false},"parameters":[]},"\/auth":{"post":{"operationId":"login_check_post","tags":["Login Check"],"responses":{"200":{"description":"User token created","content":{"application\/json":{"schema":{"type":"object","properties":{"token":{"readOnly":true,"type":"string","nullable":false}},"required":["token"]}}}}},"summary":"Creates a user token.","description":"Creates a user token.","requestBody":{"description":"The login data","content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","nullable":false},"password":{"type":"string","nullable":false}},"required":["email","password"]}}},"required":true}},"parameters":[]}},"components":{"schemas":{"Comment":{"type":"object","description":"","deprecated":false,"required":["message"],"properties":{"message":{"type":["string","null"]},"owner":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"post":{"owl:maxCardinality":1,"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":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"post":{"owl:maxCardinality":1,"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":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"post":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Contact":{"type":"object","description":"","deprecated":false,"required":["firstName","lastName","partner"],"properties":{"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"birthday":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"position":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"posts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Contact.jsonhal":{"type":"object","description":"","deprecated":false,"required":["firstName","lastName","partner"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"birthday":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"position":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"posts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Contact.jsonld":{"type":"object","description":"","deprecated":false,"required":["firstName","lastName","partner"],"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"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"birthday":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"position":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"posts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Media-media_object.read":{"type":"object","description":"","deprecated":false,"externalDocs":{"url":"https:\/\/schema.org\/MediaObject"},"properties":{"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]}}},"Media.jsonhal-media_object.read":{"type":"object","description":"","deprecated":false,"externalDocs":{"url":"https:\/\/schema.org\/MediaObject"},"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]}}},"Media.jsonld-media_object.read":{"type":"object","description":"","deprecated":false,"externalDocs":{"url":"https:\/\/schema.org\/MediaObject"},"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"},"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]}}},"Partner":{"type":"object","description":"","deprecated":false,"required":["name","partnerType"],"properties":{"name":{"type":"string"},"partnerType":{"type":"string","enum":["customer","supplier","service"]},"street":{"type":["string","null"]},"streetNo":{"type":["string","null"]},"zip":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]},"website":{"type":["string","null"]},"logo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"logoUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"},"posts":{"readOnly":true,"description":"array","type":"array","items":{"type":"string"}},"contacts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}}}},"Partner.jsonhal":{"type":"object","description":"","deprecated":false,"required":["name","partnerType"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"name":{"type":"string"},"partnerType":{"type":"string","enum":["customer","supplier","service"]},"street":{"type":["string","null"]},"streetNo":{"type":["string","null"]},"zip":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]},"website":{"type":["string","null"]},"logo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"logoUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"},"posts":{"readOnly":true,"description":"array","type":"array","items":{"type":"string"}},"contacts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}}}},"Partner.jsonld":{"type":"object","description":"","deprecated":false,"required":["name","partnerType"],"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"},"name":{"type":"string"},"partnerType":{"type":"string","enum":["customer","supplier","service"]},"street":{"type":["string","null"]},"streetNo":{"type":["string","null"]},"zip":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]},"website":{"type":["string","null"]},"logo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"logoUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"},"posts":{"readOnly":true,"description":"array","type":"array","items":{"type":"string"}},"contacts":{"readOnly":true,"type":"array","items":{"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}}}},"Post":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"owner":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"description":"array","type":"array","items":{"$ref":"#\/components\/schemas\/Comment"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Post-posting.create":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"}}},"Post-posting.patch":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"headline":{"type":["string","null"]},"message":{"type":["string","null"]}}},"Post.jsonhal":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"owner":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"description":"array","type":"array","items":{"$ref":"#\/components\/schemas\/Comment.jsonhal"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Post.jsonhal-posting.create":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"}}},"Post.jsonld":{"type":"object","description":"","deprecated":false,"required":["headline","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"},"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"owner":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"description":"array","type":"array","items":{"$ref":"#\/components\/schemas\/Comment.jsonld"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Post.jsonld-posting.create":{"type":"object","description":"","deprecated":false,"required":["headline","message"],"properties":{"headline":{"type":["string","null"]},"message":{"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"}}},"Product":{"type":"object","description":"","deprecated":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"}}},"Product.jsonhal":{"type":"object","description":"","deprecated":false,"required":["name"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"name":{"type":"string"},"description":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"}}},"Product.jsonld":{"type":"object","description":"","deprecated":false,"required":["name"],"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"},"name":{"type":"string"},"description":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"}}},"Sale":{"type":"object","description":"","deprecated":false,"properties":{"owner":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"partnerName":{"readOnly":true,"type":["string","null"]},"product":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"productName":{"readOnly":true,"type":["string","null"]},"turnover":{"type":["integer","null"]},"profit":{"type":["integer","null"]},"comment":{"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"},"posts":{"readOnly":true,"description":"array","type":"array","items":{"type":"string"}}},"required":["turnover"]},"Sale.jsonhal":{"type":"object","description":"","deprecated":false,"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"owner":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"partnerName":{"readOnly":true,"type":["string","null"]},"product":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"productName":{"readOnly":true,"type":["string","null"]},"turnover":{"type":["integer","null"]},"profit":{"type":["integer","null"]},"comment":{"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"},"posts":{"readOnly":true,"description":"array","type":"array","items":{"type":"string"}}},"required":["turnover"]},"Sale.jsonld":{"type":"object","description":"","deprecated":false,"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"},"owner":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"partnerName":{"readOnly":true,"type":["string","null"]},"product":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"productName":{"readOnly":true,"type":["string","null"]},"turnover":{"type":["integer","null"]},"profit":{"type":["integer","null"]},"comment":{"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"},"posts":{"readOnly":true,"description":"array","type":"array","items":{"type":"string"}}},"required":["turnover"]},"SaleSummary":{"type":"object","description":"","deprecated":false,"properties":{"owner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"type":["string","null"]},"turnover":{"type":["integer","null"]},"profit":{"type":["integer","null"]}}},"SaleSummary.jsonhal":{"type":"object","description":"","deprecated":false,"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"owner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"type":["string","null"]},"turnover":{"type":["integer","null"]},"profit":{"type":["integer","null"]}}},"SaleSummary.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"owner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"type":["string","null"]},"turnover":{"type":["integer","null"]},"profit":{"type":["integer","null"]}}},"Task":{"type":"object","description":"","deprecated":false,"required":["headline","description","assignedTo","dueAt","prio","completed"],"properties":{"headline":{"type":["string","null"]},"description":{"type":["string","null"]},"createdBy":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdByName":{"readOnly":true,"type":["string","null"]},"assignedTo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"assignedToName":{"readOnly":true,"type":["string","null"]},"dueAt":{"type":["string","null"],"format":"date-time"},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"partnerName":{"readOnly":true,"type":["string","null"]},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contactName":{"readOnly":true,"type":["string","null"]},"prio":{"type":"string","enum":["low","medium","high"]},"completed":{"type":["boolean","null"]},"taskNotes":{"description":"array","type":"array","items":{"$ref":"#\/components\/schemas\/TaskNote"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Task.jsonhal":{"type":"object","description":"","deprecated":false,"required":["headline","description","assignedTo","dueAt","prio","completed"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"headline":{"type":["string","null"]},"description":{"type":["string","null"]},"createdBy":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdByName":{"readOnly":true,"type":["string","null"]},"assignedTo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"assignedToName":{"readOnly":true,"type":["string","null"]},"dueAt":{"type":["string","null"],"format":"date-time"},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"partnerName":{"readOnly":true,"type":["string","null"]},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contactName":{"readOnly":true,"type":["string","null"]},"prio":{"type":"string","enum":["low","medium","high"]},"completed":{"type":["boolean","null"]},"taskNotes":{"description":"array","type":"array","items":{"$ref":"#\/components\/schemas\/TaskNote.jsonhal"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Task.jsonld":{"type":"object","description":"","deprecated":false,"required":["headline","description","assignedTo","dueAt","prio","completed"],"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"},"headline":{"type":["string","null"]},"description":{"type":["string","null"]},"createdBy":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdByName":{"readOnly":true,"type":["string","null"]},"assignedTo":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"assignedToName":{"readOnly":true,"type":["string","null"]},"dueAt":{"type":["string","null"],"format":"date-time"},"partner":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"partnerName":{"readOnly":true,"type":["string","null"]},"contact":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"contactName":{"readOnly":true,"type":["string","null"]},"prio":{"type":"string","enum":["low","medium","high"]},"completed":{"type":["boolean","null"]},"taskNotes":{"description":"array","type":"array","items":{"$ref":"#\/components\/schemas\/TaskNote.jsonld"}},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"TaskNote":{"type":"object","description":"","deprecated":false,"required":["message"],"properties":{"message":{"type":["string","null"]},"owner":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"task":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"TaskNote.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":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"task":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"TaskNote.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":{"readOnly":true,"owl:maxCardinality":1,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"ownerName":{"readOnly":true,"type":["string","null"]},"task":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"User":{"type":"object","description":"","deprecated":false,"required":["email","firstName","lastName"],"properties":{"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"password":{"writeOnly":true,"description":"The plaintext password when being set or changed.","type":["string","null"]},"active":{"type":"boolean"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"User.jsonhal":{"type":"object","description":"","deprecated":false,"required":["email","firstName","lastName"],"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"password":{"writeOnly":true,"description":"The plaintext password when being set or changed.","type":["string","null"]},"active":{"type":"boolean"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"User.jsonld":{"type":"object","description":"","deprecated":false,"required":["email","firstName","lastName"],"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"},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"image":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"password":{"writeOnly":true,"description":"The plaintext password when being set or changed.","type":["string","null"]},"active":{"type":"boolean"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}}},"responses":{},"parameters":{},"examples":{},"requestBodies":{},"headers":{},"securitySchemes":{"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"security":[{"JWT":[]}],"tags":[]} \ No newline at end of file diff --git a/matsen-tool/openapi.yaml b/matsen-tool/openapi.yaml index fd95a16..ab0be35 100644 --- a/matsen-tool/openapi.yaml +++ b/matsen-tool/openapi.yaml @@ -1515,20 +1515,20 @@ paths: required: true deprecated: false parameters: [] - /api/tasks: + /api/sale_summaries: get: - operationId: api_tasks_get_collection + operationId: api_sale_summaries_get_collection tags: - - Task + - SaleSummary responses: 200: - description: 'Task collection' + description: 'SaleSummary collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/Task.jsonld' } } + 'hydra:member': { type: array, items: { $ref: '#/components/schemas/SaleSummary.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 } } } } } } @@ -1538,25 +1538,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Task' + $ref: '#/components/schemas/SaleSummary' text/html: schema: type: array items: - $ref: '#/components/schemas/Task' + $ref: '#/components/schemas/SaleSummary' application/hal+json: schema: type: object properties: - _embedded: { type: array, items: { $ref: '#/components/schemas/Task.jsonhal' } } + _embedded: { type: array, items: { $ref: '#/components/schemas/SaleSummary.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 Task resources.' - description: 'Retrieves the collection of Task resources.' + summary: 'Retrieves the collection of SaleSummary resources.' + description: 'Retrieves the collection of SaleSummary resources.' parameters: - name: page @@ -1586,8 +1586,81 @@ paths: style: form explode: false allowReserved: false + deprecated: false + parameters: [] + /api/sales: + get: + operationId: api_sales_get_collection + tags: + - Sale + responses: + 200: + description: 'Sale collection' + content: + application/ld+json: + schema: + type: object + properties: + 'hydra:member': { type: array, items: { $ref: '#/components/schemas/Sale.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/Sale' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/Sale' + application/hal+json: + schema: + type: object + properties: + _embedded: { type: array, items: { $ref: '#/components/schemas/Sale.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 Sale resources.' + description: 'Retrieves the collection of Sale 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: partner + 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 + - + name: owner in: query description: '' required: false @@ -1599,7 +1672,7 @@ paths: explode: false allowReserved: false - - name: 'partner[]' + name: 'owner[]' in: query description: '' required: false @@ -1613,7 +1686,7 @@ paths: explode: true allowReserved: false - - name: contact + name: partner in: query description: '' required: false @@ -1625,7 +1698,7 @@ paths: explode: false allowReserved: false - - name: 'contact[]' + name: 'partner[]' in: query description: '' required: false @@ -1640,81 +1713,81 @@ paths: allowReserved: false deprecated: false post: - operationId: api_tasks_post + operationId: api_sales_post tags: - - Task + - Sale responses: 201: - description: 'Task resource created' + description: 'Sale resource created' content: application/ld+json: schema: - $ref: '#/components/schemas/Task.jsonld' + $ref: '#/components/schemas/Sale.jsonld' application/json: schema: - $ref: '#/components/schemas/Task' + $ref: '#/components/schemas/Sale' text/html: schema: - $ref: '#/components/schemas/Task' + $ref: '#/components/schemas/Sale' application/hal+json: schema: - $ref: '#/components/schemas/Task.jsonhal' + $ref: '#/components/schemas/Sale.jsonhal' links: { } 400: description: 'Invalid input' 422: description: 'Unprocessable entity' - summary: 'Creates a Task resource.' - description: 'Creates a Task resource.' + summary: 'Creates a Sale resource.' + description: 'Creates a Sale resource.' parameters: [] requestBody: - description: 'The new Task resource' + description: 'The new Sale resource' content: application/ld+json: schema: - $ref: '#/components/schemas/Task.jsonld' + $ref: '#/components/schemas/Sale.jsonld' application/json: schema: - $ref: '#/components/schemas/Task' + $ref: '#/components/schemas/Sale' text/html: schema: - $ref: '#/components/schemas/Task' + $ref: '#/components/schemas/Sale' application/hal+json: schema: - $ref: '#/components/schemas/Task.jsonhal' + $ref: '#/components/schemas/Sale.jsonhal' required: true deprecated: false parameters: [] - '/api/tasks/{id}': + '/api/sales/{id}': get: - operationId: api_tasks_id_get + operationId: api_sales_id_get tags: - - Task + - Sale responses: 200: - description: 'Task resource' + description: 'Sale resource' content: application/ld+json: schema: - $ref: '#/components/schemas/Task.jsonld' + $ref: '#/components/schemas/Sale.jsonld' application/json: schema: - $ref: '#/components/schemas/Task' + $ref: '#/components/schemas/Sale' text/html: schema: - $ref: '#/components/schemas/Task' + $ref: '#/components/schemas/Sale' application/hal+json: schema: - $ref: '#/components/schemas/Task.jsonhal' + $ref: '#/components/schemas/Sale.jsonhal' 404: description: 'Resource not found' - summary: 'Retrieves a Task resource.' - description: 'Retrieves a Task resource.' + summary: 'Retrieves a Sale resource.' + description: 'Retrieves a Sale resource.' parameters: - name: id in: path - description: 'TaskApi identifier' + description: 'SaleApi identifier' required: true deprecated: false allowEmptyValue: false @@ -1725,21 +1798,21 @@ paths: allowReserved: false deprecated: false delete: - operationId: api_tasks_id_delete + operationId: api_sales_id_delete tags: - - Task + - Sale responses: 204: - description: 'Task resource deleted' + description: 'Sale resource deleted' 404: description: 'Resource not found' - summary: 'Removes the Task resource.' - description: 'Removes the Task resource.' + summary: 'Removes the Sale resource.' + description: 'Removes the Sale resource.' parameters: - name: id in: path - description: 'TaskApi identifier' + description: 'SaleApi identifier' required: true deprecated: false allowEmptyValue: false @@ -1750,25 +1823,25 @@ paths: allowReserved: false deprecated: false patch: - operationId: api_tasks_id_patch + operationId: api_sales_id_patch tags: - - Task + - Sale responses: 200: - description: 'Task resource updated' + description: 'Sale resource updated' content: application/ld+json: schema: - $ref: '#/components/schemas/Task.jsonld' + $ref: '#/components/schemas/Sale.jsonld' application/json: schema: - $ref: '#/components/schemas/Task' + $ref: '#/components/schemas/Sale' text/html: schema: - $ref: '#/components/schemas/Task' + $ref: '#/components/schemas/Sale' application/hal+json: schema: - $ref: '#/components/schemas/Task.jsonhal' + $ref: '#/components/schemas/Sale.jsonhal' links: { } 400: description: 'Invalid input' @@ -1776,13 +1849,13 @@ paths: description: 'Unprocessable entity' 404: description: 'Resource not found' - summary: 'Updates the Task resource.' - description: 'Updates the Task resource.' + summary: 'Updates the Sale resource.' + description: 'Updates the Sale resource.' parameters: - name: id in: path - description: 'TaskApi identifier' + description: 'SaleApi identifier' required: true deprecated: false allowEmptyValue: false @@ -1792,28 +1865,28 @@ paths: explode: false allowReserved: false requestBody: - description: 'The updated Task resource' + description: 'The updated Sale resource' content: application/merge-patch+json: schema: - $ref: '#/components/schemas/Task' + $ref: '#/components/schemas/Sale' required: true deprecated: false parameters: [] - /api/users: + /api/task_notes: get: - operationId: api_users_get_collection + operationId: api_task_notes_get_collection tags: - - User + - TaskNote responses: 200: - description: 'User collection' + description: 'TaskNote collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/User.jsonld' } } + 'hydra:member': { type: array, items: { $ref: '#/components/schemas/TaskNote.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 } } } } } } @@ -1823,25 +1896,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/TaskNote' text/html: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/TaskNote' application/hal+json: schema: type: object properties: - _embedded: { type: array, items: { $ref: '#/components/schemas/User.jsonhal' } } + _embedded: { type: array, items: { $ref: '#/components/schemas/TaskNote.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 User resources.' - description: 'Retrieves the collection of User resources.' + summary: 'Retrieves the collection of TaskNote resources.' + description: 'Retrieves the collection of TaskNote resources.' parameters: - name: page @@ -1871,83 +1944,134 @@ paths: style: form explode: false allowReserved: false + - + name: task + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: true + schema: + type: string + style: form + explode: false + allowReserved: false + - + name: 'task[]' + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: true + schema: + type: array + items: + type: string + style: form + explode: true + allowReserved: false deprecated: false post: - operationId: api_users_post + operationId: api_task_notes_post tags: - - User + - TaskNote responses: 201: - description: 'User resource created' + description: 'TaskNote resource created' content: application/ld+json: schema: - $ref: '#/components/schemas/User.jsonld' + $ref: '#/components/schemas/TaskNote.jsonld' application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/TaskNote' text/html: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/TaskNote' application/hal+json: schema: - $ref: '#/components/schemas/User.jsonhal' + $ref: '#/components/schemas/TaskNote.jsonhal' links: { } 400: description: 'Invalid input' 422: description: 'Unprocessable entity' - summary: 'Creates a User resource.' - description: 'Creates a User resource.' + summary: 'Creates a TaskNote resource.' + description: 'Creates a TaskNote resource.' parameters: [] requestBody: - description: 'The new User resource' + description: 'The new TaskNote resource' content: application/ld+json: schema: - $ref: '#/components/schemas/User.jsonld' + $ref: '#/components/schemas/TaskNote.jsonld' application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/TaskNote' text/html: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/TaskNote' application/hal+json: schema: - $ref: '#/components/schemas/User.jsonhal' + $ref: '#/components/schemas/TaskNote.jsonhal' required: true deprecated: false parameters: [] - '/api/users/{id}': + '/api/task_notes/{id}': get: - operationId: api_users_id_get + operationId: api_task_notes_id_get tags: - - User + - TaskNote responses: 200: - description: 'User resource' + description: 'TaskNote resource' content: application/ld+json: schema: - $ref: '#/components/schemas/User.jsonld' + $ref: '#/components/schemas/TaskNote.jsonld' application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/TaskNote' text/html: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/TaskNote' application/hal+json: schema: - $ref: '#/components/schemas/User.jsonhal' + $ref: '#/components/schemas/TaskNote.jsonhal' 404: description: 'Resource not found' - summary: 'Retrieves a User resource.' - description: 'Retrieves a User resource.' + summary: 'Retrieves a TaskNote resource.' + description: 'Retrieves a TaskNote resource.' parameters: - name: id in: path - description: 'UserApi identifier' + description: 'TaskNoteApi identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_task_notes_id_delete + tags: + - TaskNote + responses: + 204: + description: 'TaskNote resource deleted' + 404: + description: 'Resource not found' + summary: 'Removes the TaskNote resource.' + description: 'Removes the TaskNote resource.' + parameters: + - + name: id + in: path + description: 'TaskNoteApi identifier' required: true deprecated: false allowEmptyValue: false @@ -1958,25 +2082,25 @@ paths: allowReserved: false deprecated: false patch: - operationId: api_users_id_patch + operationId: api_task_notes_id_patch tags: - - User + - TaskNote responses: 200: - description: 'User resource updated' + description: 'TaskNote resource updated' content: application/ld+json: schema: - $ref: '#/components/schemas/User.jsonld' + $ref: '#/components/schemas/TaskNote.jsonld' application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/TaskNote' text/html: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/TaskNote' application/hal+json: schema: - $ref: '#/components/schemas/User.jsonhal' + $ref: '#/components/schemas/TaskNote.jsonhal' links: { } 400: description: 'Invalid input' @@ -1984,13 +2108,13 @@ paths: description: 'Unprocessable entity' 404: description: 'Resource not found' - summary: 'Updates the User resource.' - description: 'Updates the User resource.' + summary: 'Updates the TaskNote resource.' + description: 'Updates the TaskNote resource.' parameters: - name: id in: path - description: 'UserApi identifier' + description: 'TaskNoteApi identifier' required: true deprecated: false allowEmptyValue: false @@ -2000,95 +2124,1067 @@ paths: explode: false allowReserved: false requestBody: - description: 'The updated User resource' + description: 'The updated TaskNote resource' content: application/merge-patch+json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/TaskNote' required: true deprecated: false parameters: [] - /auth: - post: - operationId: login_check_post + /api/tasks: + get: + operationId: api_tasks_get_collection tags: - - 'Login Check' + - Task responses: 200: - description: 'User token created' + description: 'Task collection' content: + application/ld+json: + schema: + type: object + properties: + 'hydra:member': { type: array, items: { $ref: '#/components/schemas/Task.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/Task' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/Task' + application/hal+json: schema: type: object properties: - token: { readOnly: true, type: string, nullable: false } + _embedded: { type: array, items: { $ref: '#/components/schemas/Task.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: - - token - summary: 'Creates a user token.' - description: 'Creates a user token.' - requestBody: - description: 'The login data' - content: - application/json: - schema: - type: object + - _links + - _embedded + summary: 'Retrieves the collection of Task resources.' + description: 'Retrieves the collection of Task 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 + - + name: partner + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: true + schema: + type: string + style: form + explode: false + allowReserved: false + - + name: 'partner[]' + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: true + schema: + type: array + items: + type: string + style: form + explode: true + allowReserved: false + - + name: contact + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: true + schema: + type: string + style: form + explode: false + allowReserved: false + - + name: 'contact[]' + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: true + schema: + type: array + items: + type: string + style: form + explode: true + allowReserved: false + deprecated: false + post: + operationId: api_tasks_post + tags: + - Task + responses: + 201: + description: 'Task resource created' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Task.jsonld' + application/json: + schema: + $ref: '#/components/schemas/Task' + text/html: + schema: + $ref: '#/components/schemas/Task' + application/hal+json: + schema: + $ref: '#/components/schemas/Task.jsonhal' + links: { } + 400: + description: 'Invalid input' + 422: + description: 'Unprocessable entity' + summary: 'Creates a Task resource.' + description: 'Creates a Task resource.' + parameters: [] + requestBody: + description: 'The new Task resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Task.jsonld' + application/json: + schema: + $ref: '#/components/schemas/Task' + text/html: + schema: + $ref: '#/components/schemas/Task' + application/hal+json: + schema: + $ref: '#/components/schemas/Task.jsonhal' + required: true + deprecated: false + parameters: [] + '/api/tasks/{id}': + get: + operationId: api_tasks_id_get + tags: + - Task + responses: + 200: + description: 'Task resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Task.jsonld' + application/json: + schema: + $ref: '#/components/schemas/Task' + text/html: + schema: + $ref: '#/components/schemas/Task' + application/hal+json: + schema: + $ref: '#/components/schemas/Task.jsonhal' + 404: + description: 'Resource not found' + summary: 'Retrieves a Task resource.' + description: 'Retrieves a Task resource.' + parameters: + - + name: id + in: path + description: 'TaskApi identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_tasks_id_delete + tags: + - Task + responses: + 204: + description: 'Task resource deleted' + 404: + description: 'Resource not found' + summary: 'Removes the Task resource.' + description: 'Removes the Task resource.' + parameters: + - + name: id + in: path + description: 'TaskApi identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_tasks_id_patch + tags: + - Task + responses: + 200: + description: 'Task resource updated' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Task.jsonld' + application/json: + schema: + $ref: '#/components/schemas/Task' + text/html: + schema: + $ref: '#/components/schemas/Task' + application/hal+json: + schema: + $ref: '#/components/schemas/Task.jsonhal' + links: { } + 400: + description: 'Invalid input' + 422: + description: 'Unprocessable entity' + 404: + description: 'Resource not found' + summary: 'Updates the Task resource.' + description: 'Updates the Task resource.' + parameters: + - + name: id + in: path + description: 'TaskApi identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated Task resource' + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/Task' + required: true + deprecated: false + parameters: [] + /api/users: + get: + operationId: api_users_get_collection + tags: + - User + responses: + 200: + description: 'User collection' + content: + application/ld+json: + schema: + type: object + properties: + 'hydra:member': { type: array, items: { $ref: '#/components/schemas/User.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/User' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/User' + application/hal+json: + schema: + type: object + properties: + _embedded: { type: array, items: { $ref: '#/components/schemas/User.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 User resources.' + description: 'Retrieves the collection of User 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_users_post + tags: + - User + responses: + 201: + description: 'User resource created' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/User.jsonld' + application/json: + schema: + $ref: '#/components/schemas/User' + text/html: + schema: + $ref: '#/components/schemas/User' + application/hal+json: + schema: + $ref: '#/components/schemas/User.jsonhal' + links: { } + 400: + description: 'Invalid input' + 422: + description: 'Unprocessable entity' + summary: 'Creates a User resource.' + description: 'Creates a User resource.' + parameters: [] + requestBody: + description: 'The new User resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/User.jsonld' + application/json: + schema: + $ref: '#/components/schemas/User' + text/html: + schema: + $ref: '#/components/schemas/User' + application/hal+json: + schema: + $ref: '#/components/schemas/User.jsonhal' + required: true + deprecated: false + parameters: [] + '/api/users/{id}': + get: + operationId: api_users_id_get + tags: + - User + responses: + 200: + description: 'User resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/User.jsonld' + application/json: + schema: + $ref: '#/components/schemas/User' + text/html: + schema: + $ref: '#/components/schemas/User' + application/hal+json: + schema: + $ref: '#/components/schemas/User.jsonhal' + 404: + description: 'Resource not found' + summary: 'Retrieves a User resource.' + description: 'Retrieves a User resource.' + parameters: + - + name: id + in: path + description: 'UserApi identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_users_id_patch + tags: + - User + responses: + 200: + description: 'User resource updated' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/User.jsonld' + application/json: + schema: + $ref: '#/components/schemas/User' + text/html: + schema: + $ref: '#/components/schemas/User' + application/hal+json: + schema: + $ref: '#/components/schemas/User.jsonhal' + links: { } + 400: + description: 'Invalid input' + 422: + description: 'Unprocessable entity' + 404: + description: 'Resource not found' + summary: 'Updates the User resource.' + description: 'Updates the User resource.' + parameters: + - + name: id + in: path + description: 'UserApi identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated User resource' + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/User' + required: true + deprecated: false + parameters: [] + /auth: + post: + operationId: login_check_post + tags: + - 'Login Check' + responses: + 200: + description: 'User token created' + content: + application/json: + schema: + type: object + properties: + token: { readOnly: true, type: string, nullable: false } + required: + - token + summary: 'Creates a user token.' + description: 'Creates a user token.' + requestBody: + description: 'The login data' + content: + application/json: + schema: + type: object + properties: + email: + type: string + nullable: false + password: + type: string + nullable: false + required: + - email + - password + required: true + parameters: [] +components: + schemas: + Comment: + type: object + description: '' + deprecated: false + required: + - message + properties: + message: + type: + - string + - 'null' + owner: + readOnly: true + 'owl:maxCardinality': 1 + type: string + format: iri-reference + example: 'https://example.com/' + ownerName: + readOnly: true + type: + - string + - 'null' + post: + 'owl:maxCardinality': 1 + 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: + readOnly: true + 'owl:maxCardinality': 1 + type: string + format: iri-reference + example: 'https://example.com/' + ownerName: + readOnly: true + type: + - string + - 'null' + post: + 'owl:maxCardinality': 1 + 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: + readOnly: true + 'owl:maxCardinality': 1 + type: string + format: iri-reference + example: 'https://example.com/' + ownerName: + readOnly: true + type: + - string + - 'null' + post: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + Contact: + type: object + description: '' + deprecated: false + required: + - firstName + - lastName + - partner + properties: + firstName: + type: + - string + - 'null' + lastName: + type: + - string + - 'null' + partner: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + birthday: + type: + - string + - 'null' + image: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + imageUrl: + readOnly: true + type: + - string + - 'null' + position: + type: + - string + - 'null' + phone: + type: + - string + - 'null' + email: + format: email + externalDocs: + url: 'https://schema.org/email' + type: + - string + - 'null' + posts: + readOnly: true + type: array + items: + type: string + format: iri-reference + example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + Contact.jsonhal: + type: object + description: '' + deprecated: false + required: + - firstName + - lastName + - partner + properties: + _links: + type: object + properties: + self: + type: object properties: - email: + href: type: string - nullable: false - password: + format: iri-reference + firstName: + type: + - string + - 'null' + lastName: + type: + - string + - 'null' + partner: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + birthday: + type: + - string + - 'null' + image: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + imageUrl: + readOnly: true + type: + - string + - 'null' + position: + type: + - string + - 'null' + phone: + type: + - string + - 'null' + email: + format: email + externalDocs: + url: 'https://schema.org/email' + type: + - string + - 'null' + posts: + readOnly: true + type: array + items: + type: string + format: iri-reference + example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + Contact.jsonld: + type: object + description: '' + deprecated: false + required: + - firstName + - lastName + - partner + properties: + '@context': + readOnly: true + oneOf: + - + type: string + - + type: object + properties: + '@vocab': type: string - nullable: false + hydra: + type: string + enum: ['http://www.w3.org/ns/hydra/core#'] required: - - email - - password - required: true - parameters: [] -components: - schemas: - Comment: + - '@vocab' + - hydra + additionalProperties: true + '@id': + readOnly: true + type: string + '@type': + readOnly: true + type: string + firstName: + type: + - string + - 'null' + lastName: + type: + - string + - 'null' + partner: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + birthday: + type: + - string + - 'null' + image: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + imageUrl: + readOnly: true + type: + - string + - 'null' + position: + type: + - string + - 'null' + phone: + type: + - string + - 'null' + email: + format: email + externalDocs: + url: 'https://schema.org/email' + type: + - string + - 'null' + posts: + readOnly: true + type: array + items: + type: string + format: iri-reference + example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + Media-media_object.read: + type: object + description: '' + deprecated: false + externalDocs: + url: 'https://schema.org/MediaObject' + properties: + contentUrl: + externalDocs: + url: 'https://schema.org/contentUrl' + type: + - string + - 'null' + Media.jsonhal-media_object.read: + type: object + description: '' + deprecated: false + externalDocs: + url: 'https://schema.org/MediaObject' + properties: + _links: + type: object + properties: + self: + type: object + properties: + href: + type: string + format: iri-reference + contentUrl: + externalDocs: + url: 'https://schema.org/contentUrl' + type: + - string + - 'null' + Media.jsonld-media_object.read: + type: object + description: '' + deprecated: false + externalDocs: + url: 'https://schema.org/MediaObject' + 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 + contentUrl: + externalDocs: + url: 'https://schema.org/contentUrl' + type: + - string + - 'null' + Partner: type: object description: '' deprecated: false required: - - message + - name + - partnerType properties: - message: + name: + type: string + partnerType: + type: string + enum: + - customer + - supplier + - service + street: + type: + - string + - 'null' + streetNo: + type: + - string + - 'null' + zip: + type: + - string + - 'null' + city: type: - string - 'null' - owner: - readOnly: true - 'owl:maxCardinality': 1 + country: type: - string - 'null' - format: iri-reference - example: 'https://example.com/' - ownerName: - readOnly: true + website: type: - string - 'null' - post: + logo: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' + logoUrl: + readOnly: true + type: + - string + - 'null' createdAt: readOnly: true type: - string - 'null' format: date-time - Comment.jsonhal: + posts: + readOnly: true + description: 'array' + type: array + items: + type: string + contacts: + readOnly: true + type: array + items: + type: string + format: iri-reference + example: 'https://example.com/' + Partner.jsonhal: type: object description: '' deprecated: false required: - - message + - name + - partnerType properties: _links: type: object @@ -2099,42 +3195,76 @@ components: href: type: string format: iri-reference - message: + name: + type: string + partnerType: + type: string + enum: + - customer + - supplier + - service + street: type: - string - 'null' - owner: - readOnly: true - 'owl:maxCardinality': 1 + streetNo: type: - string - 'null' - format: iri-reference - example: 'https://example.com/' - ownerName: - readOnly: true + zip: type: - string - 'null' - post: + city: + type: + - string + - 'null' + country: + type: + - string + - 'null' + website: + type: + - string + - 'null' + logo: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' + logoUrl: + readOnly: true + type: + - string + - 'null' createdAt: readOnly: true type: - string - 'null' format: date-time - Comment.jsonld: + posts: + readOnly: true + description: 'array' + type: array + items: + type: string + contacts: + readOnly: true + type: array + items: + type: string + format: iri-reference + example: 'https://example.com/' + Partner.jsonld: type: object description: '' deprecated: false required: - - message + - name + - partnerType properties: '@context': readOnly: true @@ -2159,50 +3289,141 @@ components: '@type': readOnly: true type: string + name: + type: string + partnerType: + type: string + enum: + - customer + - supplier + - service + street: + type: + - string + - 'null' + streetNo: + type: + - string + - 'null' + zip: + type: + - string + - 'null' + city: + type: + - string + - 'null' + country: + type: + - string + - 'null' + website: + type: + - string + - 'null' + logo: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + logoUrl: + readOnly: true + type: + - string + - 'null' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + posts: + readOnly: true + description: 'array' + type: array + items: + type: string + contacts: + readOnly: true + type: array + items: + type: string + format: iri-reference + example: 'https://example.com/' + Post: + type: object + description: '' + deprecated: false + required: + - headline + - message + properties: + headline: + type: + - string + - 'null' message: type: - string - 'null' owner: readOnly: true + 'owl:maxCardinality': 1 + type: string + format: iri-reference + example: 'https://example.com/' + ownerName: + readOnly: true + type: + - string + - 'null' + partner: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - ownerName: - readOnly: true + contact: + 'owl:maxCardinality': 1 type: - string - 'null' - post: + format: iri-reference + example: 'https://example.com/' + sale: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' + comments: + description: 'array' + type: array + items: + $ref: '#/components/schemas/Comment' createdAt: readOnly: true type: - string - 'null' format: date-time - Contact: + Post-posting.create: type: object description: '' deprecated: false required: - - firstName - - lastName - - partner + - headline + - message properties: - firstName: + headline: type: - string - 'null' - lastName: + message: type: - string - 'null' @@ -2213,58 +3434,111 @@ components: - 'null' format: iri-reference example: 'https://example.com/' - birthday: + contact: + 'owl:maxCardinality': 1 type: - string - 'null' - image: + format: iri-reference + example: 'https://example.com/' + sale: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - imageUrl: + Post-posting.patch: + type: object + description: '' + deprecated: false + required: + - headline + - message + properties: + headline: + type: + - string + - 'null' + message: + type: + - string + - 'null' + Post.jsonhal: + type: object + description: '' + deprecated: false + required: + - headline + - message + properties: + _links: + type: object + properties: + self: + type: object + properties: + href: + type: string + format: iri-reference + headline: + type: + - string + - 'null' + message: + type: + - string + - 'null' + owner: + readOnly: true + 'owl:maxCardinality': 1 + type: string + format: iri-reference + example: 'https://example.com/' + ownerName: readOnly: true type: - string - 'null' - position: + partner: + 'owl:maxCardinality': 1 type: - string - 'null' - phone: + format: iri-reference + example: 'https://example.com/' + contact: + 'owl:maxCardinality': 1 type: - string - 'null' - email: - format: email - externalDocs: - url: 'https://schema.org/email' + format: iri-reference + example: 'https://example.com/' + sale: + 'owl:maxCardinality': 1 type: - string - 'null' - posts: - readOnly: true + format: iri-reference + example: 'https://example.com/' + comments: + description: 'array' type: array items: - type: string - format: iri-reference - example: 'https://example.com/' + $ref: '#/components/schemas/Comment.jsonhal' createdAt: readOnly: true type: - string - 'null' format: date-time - Contact.jsonhal: + Post.jsonhal-posting.create: type: object description: '' deprecated: false required: - - firstName - - lastName - - partner + - headline + - message properties: _links: type: object @@ -2275,11 +3549,11 @@ components: href: type: string format: iri-reference - firstName: + headline: type: - string - 'null' - lastName: + message: type: - string - 'null' @@ -2290,58 +3564,27 @@ components: - 'null' format: iri-reference example: 'https://example.com/' - birthday: - type: - - string - - 'null' - image: + contact: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - imageUrl: - readOnly: true - type: - - string - - 'null' - position: - type: - - string - - 'null' - phone: - type: - - string - - 'null' - email: - format: email - externalDocs: - url: 'https://schema.org/email' - type: - - string - - 'null' - posts: - readOnly: true - type: array - items: - type: string - format: iri-reference - example: 'https://example.com/' - createdAt: - readOnly: true + sale: + 'owl:maxCardinality': 1 type: - string - 'null' - format: date-time - Contact.jsonld: + format: iri-reference + example: 'https://example.com/' + Post.jsonld: type: object description: '' deprecated: false required: - - firstName - - lastName - - partner + - headline + - message properties: '@context': readOnly: true @@ -2366,215 +3609,130 @@ components: '@type': readOnly: true type: string - firstName: + headline: type: - string - 'null' - lastName: + message: type: - string - 'null' - partner: + owner: + readOnly: true 'owl:maxCardinality': 1 - type: - - string - - 'null' + type: string format: iri-reference example: 'https://example.com/' - birthday: + ownerName: + readOnly: true type: - string - 'null' - image: + partner: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - imageUrl: - readOnly: true - type: - - string - - 'null' - position: - type: - - string - - 'null' - phone: + contact: + 'owl:maxCardinality': 1 type: - string - 'null' - email: - format: email - externalDocs: - url: 'https://schema.org/email' + format: iri-reference + example: 'https://example.com/' + sale: + 'owl:maxCardinality': 1 type: - string - 'null' - posts: - readOnly: true + format: iri-reference + example: 'https://example.com/' + comments: + description: 'array' type: array items: - type: string - format: iri-reference - example: 'https://example.com/' + $ref: '#/components/schemas/Comment.jsonld' createdAt: readOnly: true type: - string - 'null' format: date-time - Media-media_object.read: + Post.jsonld-posting.create: type: object description: '' deprecated: false - externalDocs: - url: 'https://schema.org/MediaObject' + required: + - headline + - message properties: - contentUrl: - externalDocs: - url: 'https://schema.org/contentUrl' + headline: type: - string - 'null' - Media.jsonhal-media_object.read: - type: object - description: '' - deprecated: false - externalDocs: - url: 'https://schema.org/MediaObject' - properties: - _links: - type: object - properties: - self: - type: object - properties: - href: - type: string - format: iri-reference - contentUrl: - externalDocs: - url: 'https://schema.org/contentUrl' + message: type: - string - 'null' - Media.jsonld-media_object.read: - type: object - description: '' - deprecated: false - externalDocs: - url: 'https://schema.org/MediaObject' - 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 - contentUrl: - externalDocs: - url: 'https://schema.org/contentUrl' + partner: + 'owl:maxCardinality': 1 type: - string - 'null' - Partner: + format: iri-reference + example: 'https://example.com/' + contact: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + sale: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + Product: type: object description: '' deprecated: false required: - name - - partnerType properties: name: type: string - partnerType: - type: string - enum: - - customer - - supplier - - service - street: - type: - - string - - 'null' - streetNo: - type: - - string - - 'null' - zip: - type: - - string - - 'null' - city: - type: - - string - - 'null' - country: - type: - - string - - 'null' - website: + description: type: - string - 'null' - logo: + image: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - logoUrl: + imageUrl: readOnly: true type: - string - 'null' createdAt: - readOnly: true type: - string - 'null' - format: date-time - posts: - readOnly: true - type: array - items: - type: string - format: iri-reference - example: 'https://example.com/' - contacts: - readOnly: true - type: array - items: - type: string - format: iri-reference - example: 'https://example.com/' - Partner.jsonhal: + format: date-time + Product.jsonhal: type: object description: '' deprecated: false required: - name - - partnerType properties: _links: type: object @@ -2587,75 +3745,33 @@ components: format: iri-reference name: type: string - partnerType: - type: string - enum: - - customer - - supplier - - service - street: - type: - - string - - 'null' - streetNo: - type: - - string - - 'null' - zip: - type: - - string - - 'null' - city: - type: - - string - - 'null' - country: - type: - - string - - 'null' - website: + description: type: - string - 'null' - logo: + image: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - logoUrl: + imageUrl: readOnly: true type: - string - 'null' createdAt: - readOnly: true type: - string - 'null' format: date-time - posts: - readOnly: true - type: array - items: - type: string - format: iri-reference - example: 'https://example.com/' - contacts: - readOnly: true - type: array - items: - type: string - format: iri-reference - example: 'https://example.com/' - Partner.jsonld: + Product.jsonld: type: object description: '' deprecated: false required: - name - - partnerType properties: '@context': readOnly: true @@ -2682,90 +3798,36 @@ components: type: string name: type: string - partnerType: - type: string - enum: - - customer - - supplier - - service - street: - type: - - string - - 'null' - streetNo: - type: - - string - - 'null' - zip: - type: - - string - - 'null' - city: - type: - - string - - 'null' - country: - type: - - string - - 'null' - website: + description: type: - string - 'null' - logo: + image: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - logoUrl: + imageUrl: readOnly: true type: - string - 'null' createdAt: - readOnly: true type: - string - 'null' format: date-time - posts: - readOnly: true - type: array - items: - type: string - format: iri-reference - example: 'https://example.com/' - contacts: - readOnly: true - type: array - items: - type: string - format: iri-reference - example: 'https://example.com/' - Post: + Sale: type: object description: '' deprecated: false - required: - - headline - - message properties: - headline: - type: - - string - - 'null' - message: - type: - - string - - 'null' owner: readOnly: true 'owl:maxCardinality': 1 - type: - - string - - 'null' + type: string format: iri-reference example: 'https://example.com/' ownerName: @@ -2780,77 +3842,53 @@ components: - 'null' format: iri-reference example: 'https://example.com/' - contact: + partnerName: + readOnly: true + type: + - string + - 'null' + product: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - comments: - description: 'array' - type: array - items: - $ref: '#/components/schemas/Comment' - createdAt: + productName: readOnly: true type: - string - 'null' - format: date-time - Post-posting.create: - type: object - description: '' - deprecated: false - required: - - headline - - message - properties: - headline: + turnover: type: - - string + - integer - 'null' - message: + profit: type: - - string + - integer - 'null' - partner: - 'owl:maxCardinality': 1 + comment: type: - string - 'null' - format: iri-reference - example: 'https://example.com/' - contact: - 'owl:maxCardinality': 1 + createdAt: + readOnly: true type: - string - 'null' - format: iri-reference - example: 'https://example.com/' - Post-posting.patch: - type: object - description: '' - deprecated: false + format: date-time + posts: + readOnly: true + description: 'array' + type: array + items: + type: string required: - - headline - - message - properties: - headline: - type: - - string - - 'null' - message: - type: - - string - - 'null' - Post.jsonhal: + - turnover + Sale.jsonhal: type: object description: '' deprecated: false - required: - - headline - - message properties: _links: type: object @@ -2861,20 +3899,10 @@ components: href: type: string format: iri-reference - headline: - type: - - string - - 'null' - message: - type: - - string - - 'null' owner: readOnly: true 'owl:maxCardinality': 1 - type: - - string - - 'null' + type: string format: iri-reference example: 'https://example.com/' ownerName: @@ -2889,70 +3917,53 @@ components: - 'null' format: iri-reference example: 'https://example.com/' - contact: + partnerName: + readOnly: true + type: + - string + - 'null' + product: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - comments: - description: 'array' - type: array - items: - $ref: '#/components/schemas/Comment.jsonhal' - createdAt: + productName: readOnly: true type: - string - 'null' - format: date-time - Post.jsonhal-posting.create: - type: object - description: '' - deprecated: false - required: - - headline - - message - properties: - _links: - type: object - properties: - self: - type: object - properties: - href: - type: string - format: iri-reference - headline: + turnover: type: - - string + - integer - 'null' - message: + profit: type: - - string + - integer - 'null' - partner: - 'owl:maxCardinality': 1 + comment: type: - string - 'null' - format: iri-reference - example: 'https://example.com/' - contact: - 'owl:maxCardinality': 1 + createdAt: + readOnly: true type: - string - 'null' - format: iri-reference - example: 'https://example.com/' - Post.jsonld: + format: date-time + posts: + readOnly: true + description: 'array' + type: array + items: + type: string + required: + - turnover + Sale.jsonld: type: object description: '' deprecated: false - required: - - headline - - message properties: '@context': readOnly: true @@ -2977,20 +3988,10 @@ components: '@type': readOnly: true type: string - headline: - type: - - string - - 'null' - message: - type: - - string - - 'null' owner: - readOnly: true - 'owl:maxCardinality': 1 - type: - - string - - 'null' + readOnly: true + 'owl:maxCardinality': 1 + type: string format: iri-reference example: 'https://example.com/' ownerName: @@ -3005,90 +4006,77 @@ components: - 'null' format: iri-reference example: 'https://example.com/' - contact: + partnerName: + readOnly: true + type: + - string + - 'null' + product: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - comments: - description: 'array' - type: array - items: - $ref: '#/components/schemas/Comment.jsonld' - createdAt: + productName: readOnly: true type: - string - 'null' - format: date-time - Post.jsonld-posting.create: - type: object - description: '' - deprecated: false - required: - - headline - - message - properties: - headline: + turnover: type: - - string + - integer - 'null' - message: + profit: type: - - string + - integer - 'null' - partner: - 'owl:maxCardinality': 1 + comment: type: - string - 'null' - format: iri-reference - example: 'https://example.com/' - contact: - 'owl:maxCardinality': 1 + createdAt: + readOnly: true type: - string - 'null' - format: iri-reference - example: 'https://example.com/' - Product: + format: date-time + posts: + readOnly: true + description: 'array' + type: array + items: + type: string + required: + - turnover + SaleSummary: type: object description: '' deprecated: false - required: - - name properties: - name: - type: string - description: - type: - - string - - 'null' - image: + owner: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - imageUrl: - readOnly: true + ownerName: type: - string - 'null' - createdAt: + turnover: type: - - string + - integer - 'null' - format: date-time - Product.jsonhal: + profit: + type: + - integer + - 'null' + SaleSummary.jsonhal: type: object description: '' deprecated: false - required: - - name properties: _links: type: object @@ -3099,82 +4087,55 @@ components: href: type: string format: iri-reference - name: - type: string - description: - type: - - string - - 'null' - image: + owner: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - imageUrl: - readOnly: true + ownerName: type: - string - 'null' - createdAt: + turnover: type: - - string + - integer - 'null' - format: date-time - Product.jsonld: + profit: + type: + - integer + - 'null' + SaleSummary.jsonld: type: object description: '' deprecated: false - required: - - name 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 - name: - type: string - description: - type: - - string - - 'null' - image: + owner: 'owl:maxCardinality': 1 type: - string - 'null' format: iri-reference example: 'https://example.com/' - imageUrl: - readOnly: true + ownerName: type: - string - 'null' - createdAt: + turnover: type: - - string + - integer + - 'null' + profit: + type: + - integer - 'null' - format: date-time Task: type: object description: '' @@ -3185,6 +4146,7 @@ components: - assignedTo - dueAt - prio + - completed properties: headline: type: @@ -3258,6 +4220,11 @@ components: type: - boolean - 'null' + taskNotes: + description: 'array' + type: array + items: + $ref: '#/components/schemas/TaskNote' createdAt: readOnly: true type: @@ -3274,6 +4241,7 @@ components: - assignedTo - dueAt - prio + - completed properties: _links: type: object @@ -3356,6 +4324,11 @@ components: type: - boolean - 'null' + taskNotes: + description: 'array' + type: array + items: + $ref: '#/components/schemas/TaskNote.jsonhal' createdAt: readOnly: true type: @@ -3372,6 +4345,7 @@ components: - assignedTo - dueAt - prio + - completed properties: '@context': readOnly: true @@ -3468,6 +4442,148 @@ components: type: - boolean - 'null' + taskNotes: + description: 'array' + type: array + items: + $ref: '#/components/schemas/TaskNote.jsonld' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + TaskNote: + type: object + description: '' + deprecated: false + required: + - message + properties: + message: + type: + - string + - 'null' + owner: + readOnly: true + 'owl:maxCardinality': 1 + type: string + format: iri-reference + example: 'https://example.com/' + ownerName: + readOnly: true + type: + - string + - 'null' + task: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + TaskNote.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: + readOnly: true + 'owl:maxCardinality': 1 + type: string + format: iri-reference + example: 'https://example.com/' + ownerName: + readOnly: true + type: + - string + - 'null' + task: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + TaskNote.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: + readOnly: true + 'owl:maxCardinality': 1 + type: string + format: iri-reference + example: 'https://example.com/' + ownerName: + readOnly: true + type: + - string + - 'null' + task: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' createdAt: readOnly: true type: diff --git a/matsen-tool/src/app/_forms/apiForms.ts b/matsen-tool/src/app/_forms/apiForms.ts index 55ec8e4..b78d24a 100644 --- a/matsen-tool/src/app/_forms/apiForms.ts +++ b/matsen-tool/src/app/_forms/apiForms.ts @@ -137,6 +137,7 @@ export const postForm = new FormGroup({ ownerName: new FormControl(null, []), partner: new FormControl(null, []), contact: new FormControl(null, []), + sale: new FormControl(null, []), comments: new FormControl(null, []), createdAt: new FormControl(null, []) }); @@ -145,7 +146,8 @@ export const postPostingCreateForm = new FormGroup({ headline: new FormControl(null, [Validators.required]), message: new FormControl(null, [Validators.required]), partner: new FormControl(null, []), - contact: new FormControl(null, []) + contact: new FormControl(null, []), + sale: new FormControl(null, []) }); export const postPostingPatchForm = new FormGroup({ @@ -161,6 +163,7 @@ export const postJsonhalForm = new FormGroup({ ownerName: new FormControl(null, []), partner: new FormControl(null, []), contact: new FormControl(null, []), + sale: new FormControl(null, []), comments: new FormControl(null, []), createdAt: new FormControl(null, []) }); @@ -170,7 +173,8 @@ export const postJsonhalPostingCreateForm = new FormGroup({ headline: new FormControl(null, [Validators.required]), message: new FormControl(null, [Validators.required]), partner: new FormControl(null, []), - contact: new FormControl(null, []) + contact: new FormControl(null, []), + sale: new FormControl(null, []) }); export const postJsonldForm = new FormGroup({ @@ -180,6 +184,7 @@ export const postJsonldForm = new FormGroup({ ownerName: new FormControl(null, []), partner: new FormControl(null, []), contact: new FormControl(null, []), + sale: new FormControl(null, []), comments: new FormControl(null, []), createdAt: new FormControl(null, []) }); @@ -188,7 +193,8 @@ export const postJsonldPostingCreateForm = new FormGroup({ headline: new FormControl(null, [Validators.required]), message: new FormControl(null, [Validators.required]), partner: new FormControl(null, []), - contact: new FormControl(null, []) + contact: new FormControl(null, []), + sale: new FormControl(null, []) }); export const productForm = new FormGroup({ @@ -216,6 +222,71 @@ export const productJsonldForm = new FormGroup({ createdAt: new FormControl(null, []) }); +export const saleForm = new FormGroup({ + owner: new FormControl(null, []), + ownerName: new FormControl(null, []), + partner: new FormControl(null, []), + partnerName: new FormControl(null, []), + product: new FormControl(null, []), + productName: new FormControl(null, []), + turnover: new FormControl(null, [Validators.required]), + profit: new FormControl(null, []), + comment: new FormControl(null, []), + createdAt: new FormControl(null, []), + posts: new FormControl(null, []) +}); + +export const saleJsonhalForm = new FormGroup({ + _links: new FormControl(null, []), + owner: new FormControl(null, []), + ownerName: new FormControl(null, []), + partner: new FormControl(null, []), + partnerName: new FormControl(null, []), + product: new FormControl(null, []), + productName: new FormControl(null, []), + turnover: new FormControl(null, [Validators.required]), + profit: new FormControl(null, []), + comment: new FormControl(null, []), + createdAt: new FormControl(null, []), + posts: new FormControl(null, []) +}); + +export const saleJsonldForm = new FormGroup({ + owner: new FormControl(null, []), + ownerName: new FormControl(null, []), + partner: new FormControl(null, []), + partnerName: new FormControl(null, []), + product: new FormControl(null, []), + productName: new FormControl(null, []), + turnover: new FormControl(null, [Validators.required]), + profit: new FormControl(null, []), + comment: new FormControl(null, []), + createdAt: new FormControl(null, []), + posts: new FormControl(null, []) +}); + +export const saleSummaryForm = new FormGroup({ + owner: new FormControl(null, []), + ownerName: new FormControl(null, []), + turnover: new FormControl(null, []), + profit: new FormControl(null, []) +}); + +export const saleSummaryJsonhalForm = new FormGroup({ + _links: new FormControl(null, []), + owner: new FormControl(null, []), + ownerName: new FormControl(null, []), + turnover: new FormControl(null, []), + profit: new FormControl(null, []) +}); + +export const saleSummaryJsonldForm = new FormGroup({ + owner: new FormControl(null, []), + ownerName: new FormControl(null, []), + turnover: new FormControl(null, []), + profit: new FormControl(null, []) +}); + export const taskForm = new FormGroup({ headline: new FormControl(null, [Validators.required]), description: new FormControl(null, [Validators.required]), @@ -229,7 +300,8 @@ export const taskForm = new FormGroup({ contact: new FormControl(null, []), contactName: new FormControl(null, []), prio: new FormControl(null, [Validators.required]), - completed: new FormControl(null, []), + completed: new FormControl(null, [Validators.required]), + taskNotes: new FormControl(null, []), createdAt: new FormControl(null, []) }); @@ -247,7 +319,8 @@ export const taskJsonhalForm = new FormGroup({ contact: new FormControl(null, []), contactName: new FormControl(null, []), prio: new FormControl(null, [Validators.required]), - completed: new FormControl(null, []), + completed: new FormControl(null, [Validators.required]), + taskNotes: new FormControl(null, []), createdAt: new FormControl(null, []) }); @@ -264,7 +337,33 @@ export const taskJsonldForm = new FormGroup({ contact: new FormControl(null, []), contactName: new FormControl(null, []), prio: new FormControl(null, [Validators.required]), - completed: new FormControl(null, []), + completed: new FormControl(null, [Validators.required]), + taskNotes: new FormControl(null, []), + createdAt: new FormControl(null, []) +}); + +export const taskNoteForm = new FormGroup({ + message: new FormControl(null, [Validators.required]), + owner: new FormControl(null, []), + ownerName: new FormControl(null, []), + task: new FormControl(null, []), + createdAt: new FormControl(null, []) +}); + +export const taskNoteJsonhalForm = new FormGroup({ + _links: new FormControl(null, []), + message: new FormControl(null, [Validators.required]), + owner: new FormControl(null, []), + ownerName: new FormControl(null, []), + task: new FormControl(null, []), + createdAt: new FormControl(null, []) +}); + +export const taskNoteJsonldForm = new FormGroup({ + message: new FormControl(null, [Validators.required]), + owner: new FormControl(null, []), + ownerName: new FormControl(null, []), + task: new FormControl(null, []), createdAt: new FormControl(null, []) }); 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 d2ae784..bc54c91 100644 --- a/matsen-tool/src/app/core/api/v1/.openapi-generator/FILES +++ b/matsen-tool/src/app/core/api/v1/.openapi-generator/FILES @@ -9,7 +9,10 @@ api/media.service.ts api/partner.service.ts api/post.service.ts api/product.service.ts +api/sale.service.ts +api/saleSummary.service.ts api/task.service.ts +api/taskNote.service.ts api/user.service.ts configuration.ts encoder.ts @@ -32,6 +35,12 @@ model/apiPostsGetCollection200Response.ts model/apiPostsGetCollection200Response1.ts model/apiProductsGetCollection200Response.ts model/apiProductsGetCollection200Response1.ts +model/apiSaleSummariesGetCollection200Response.ts +model/apiSaleSummariesGetCollection200Response1.ts +model/apiSalesGetCollection200Response.ts +model/apiSalesGetCollection200Response1.ts +model/apiTaskNotesGetCollection200Response.ts +model/apiTaskNotesGetCollection200Response1.ts model/apiTasksGetCollection200Response.ts model/apiTasksGetCollection200Response1.ts model/apiUsersGetCollection200Response.ts @@ -64,9 +73,18 @@ model/postPostingPatch.ts model/product.ts model/productJsonhal.ts model/productJsonld.ts +model/sale.ts +model/saleJsonhal.ts +model/saleJsonld.ts +model/saleSummary.ts +model/saleSummaryJsonhal.ts +model/saleSummaryJsonld.ts model/task.ts model/taskJsonhal.ts model/taskJsonld.ts +model/taskNote.ts +model/taskNoteJsonhal.ts +model/taskNoteJsonld.ts model/user.ts model/userJsonhal.ts model/userJsonld.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 a55bb13..a38f35d 100644 --- a/matsen-tool/src/app/core/api/v1/api/api.ts +++ b/matsen-tool/src/app/core/api/v1/api/api.ts @@ -12,8 +12,14 @@ export * from './post.service'; import { PostService } from './post.service'; export * from './product.service'; import { ProductService } from './product.service'; +export * from './sale.service'; +import { SaleService } from './sale.service'; +export * from './saleSummary.service'; +import { SaleSummaryService } from './saleSummary.service'; export * from './task.service'; import { TaskService } from './task.service'; +export * from './taskNote.service'; +import { TaskNoteService } from './taskNote.service'; export * from './user.service'; import { UserService } from './user.service'; -export const APIS = [CommentService, ContactService, LoginCheckService, MediaService, PartnerService, PostService, ProductService, TaskService, UserService]; +export const APIS = [CommentService, ContactService, LoginCheckService, MediaService, PartnerService, PostService, ProductService, SaleService, SaleSummaryService, TaskService, TaskNoteService, UserService]; diff --git a/matsen-tool/src/app/core/api/v1/api/sale.service.ts b/matsen-tool/src/app/core/api/v1/api/sale.service.ts new file mode 100644 index 0000000..b5f2b6b --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/api/sale.service.ts @@ -0,0 +1,533 @@ +/** + * 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 { ApiSalesGetCollection200Response } from '../model/apiSalesGetCollection200Response'; +// @ts-ignore +import { ApiSalesGetCollection200Response1 } from '../model/apiSalesGetCollection200Response1'; +// @ts-ignore +import { Sale } from '../model/sale'; +// @ts-ignore +import { SaleJsonhal } from '../model/saleJsonhal'; +// @ts-ignore +import { SaleJsonld } from '../model/saleJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SaleService { + + 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 Sale resources. + * Retrieves the collection of Sale resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @param owner + * @param owner2 + * @param partner + * @param partner2 + * @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 salesGetCollection(page?: number, itemsPerPage?: number, owner?: string, owner2?: Array, partner?: string, partner2?: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public salesGetCollection(page?: number, itemsPerPage?: number, owner?: string, owner2?: Array, partner?: string, partner2?: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public salesGetCollection(page?: number, itemsPerPage?: number, owner?: string, owner2?: Array, partner?: string, partner2?: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public salesGetCollection(page?: number, itemsPerPage?: number, owner?: string, owner2?: Array, partner?: string, partner2?: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): 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'); + } + if (owner !== undefined && owner !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + owner, 'owner'); + } + if (owner2) { + owner2.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'owner[]'); + }) + } + if (partner !== undefined && partner !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + partner, 'partner'); + } + if (partner2) { + partner2.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'partner[]'); + }) + } + + 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 localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + 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/sales`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Removes the Sale resource. + * Removes the Sale resource. + * @param id SaleApi 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 salesIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public salesIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public salesIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public salesIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling salesIdDelete.'); + } + + 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 localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + 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/sales/${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, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a Sale resource. + * Retrieves a Sale resource. + * @param id SaleApi 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 salesIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public salesIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public salesIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public salesIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling salesIdGet.'); + } + + 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 localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + 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/sales/${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, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the Sale resource. + * Updates the Sale resource. + * @param id SaleApi identifier + * @param sale The updated Sale 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 salesIdPatch(id: string, sale: Sale, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public salesIdPatch(id: string, sale: Sale, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public salesIdPatch(id: string, sale: Sale, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public salesIdPatch(id: string, sale: Sale, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling salesIdPatch.'); + } + if (sale === null || sale === undefined) { + throw new Error('Required parameter sale was null or undefined when calling salesIdPatch.'); + } + + 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 localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // 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/sales/${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: sale, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a Sale resource. + * Creates a Sale resource. + * @param saleJsonld The new Sale 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 salesPost(saleJsonld: SaleJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public salesPost(saleJsonld: SaleJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public salesPost(saleJsonld: SaleJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public salesPost(saleJsonld: SaleJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (saleJsonld === null || saleJsonld === undefined) { + throw new Error('Required parameter saleJsonld was null or undefined when calling salesPost.'); + } + + 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 localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // 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/sales`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: saleJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/matsen-tool/src/app/core/api/v1/api/saleSummary.service.ts b/matsen-tool/src/app/core/api/v1/api/saleSummary.service.ts new file mode 100644 index 0000000..2af76c6 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/api/saleSummary.service.ts @@ -0,0 +1,182 @@ +/** + * 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 { ApiSaleSummariesGetCollection200Response } from '../model/apiSaleSummariesGetCollection200Response'; +// @ts-ignore +import { ApiSaleSummariesGetCollection200Response1 } from '../model/apiSaleSummariesGetCollection200Response1'; +// @ts-ignore +import { SaleSummary } from '../model/saleSummary'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SaleSummaryService { + + 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 SaleSummary resources. + * Retrieves the collection of SaleSummary 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 saleSummariesGetCollection(page?: number, itemsPerPage?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public saleSummariesGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public saleSummariesGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public saleSummariesGetCollection(page?: number, itemsPerPage?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + + 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 localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + 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/sale_summaries`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/matsen-tool/src/app/core/api/v1/api/taskNote.service.ts b/matsen-tool/src/app/core/api/v1/api/taskNote.service.ts new file mode 100644 index 0000000..783281b --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/api/taskNote.service.ts @@ -0,0 +1,521 @@ +/** + * 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 { ApiTaskNotesGetCollection200Response } from '../model/apiTaskNotesGetCollection200Response'; +// @ts-ignore +import { ApiTaskNotesGetCollection200Response1 } from '../model/apiTaskNotesGetCollection200Response1'; +// @ts-ignore +import { TaskNote } from '../model/taskNote'; +// @ts-ignore +import { TaskNoteJsonhal } from '../model/taskNoteJsonhal'; +// @ts-ignore +import { TaskNoteJsonld } from '../model/taskNoteJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class TaskNoteService { + + 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 TaskNote resources. + * Retrieves the collection of TaskNote resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @param task + * @param task2 + * @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 taskNotesGetCollection(page?: number, itemsPerPage?: number, task?: string, task2?: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public taskNotesGetCollection(page?: number, itemsPerPage?: number, task?: string, task2?: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public taskNotesGetCollection(page?: number, itemsPerPage?: number, task?: string, task2?: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public taskNotesGetCollection(page?: number, itemsPerPage?: number, task?: string, task2?: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): 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'); + } + if (task !== undefined && task !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + task, 'task'); + } + if (task2) { + task2.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'task[]'); + }) + } + + 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 localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + 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/task_notes`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Removes the TaskNote resource. + * Removes the TaskNote resource. + * @param id TaskNoteApi 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 taskNotesIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public taskNotesIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public taskNotesIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public taskNotesIdDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling taskNotesIdDelete.'); + } + + 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 localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + 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/task_notes/${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, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a TaskNote resource. + * Retrieves a TaskNote resource. + * @param id TaskNoteApi 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 taskNotesIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public taskNotesIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public taskNotesIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public taskNotesIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling taskNotesIdGet.'); + } + + 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 localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + 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/task_notes/${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, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the TaskNote resource. + * Updates the TaskNote resource. + * @param id TaskNoteApi identifier + * @param taskNote The updated TaskNote 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 taskNotesIdPatch(id: string, taskNote: TaskNote, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public taskNotesIdPatch(id: string, taskNote: TaskNote, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public taskNotesIdPatch(id: string, taskNote: TaskNote, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public taskNotesIdPatch(id: string, taskNote: TaskNote, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling taskNotesIdPatch.'); + } + if (taskNote === null || taskNote === undefined) { + throw new Error('Required parameter taskNote was null or undefined when calling taskNotesIdPatch.'); + } + + 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 localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // 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/task_notes/${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: taskNote, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a TaskNote resource. + * Creates a TaskNote resource. + * @param taskNoteJsonld The new TaskNote 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 taskNotesPost(taskNoteJsonld: TaskNoteJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public taskNotesPost(taskNoteJsonld: TaskNoteJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public taskNotesPost(taskNoteJsonld: TaskNoteJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public taskNotesPost(taskNoteJsonld: TaskNoteJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (taskNoteJsonld === null || taskNoteJsonld === undefined) { + throw new Error('Required parameter taskNoteJsonld was null or undefined when calling taskNotesPost.'); + } + + 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 localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // 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/task_notes`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: taskNoteJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/matsen-tool/src/app/core/api/v1/model/apiSaleSummariesGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiSaleSummariesGetCollection200Response.ts new file mode 100644 index 0000000..5639ea7 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiSaleSummariesGetCollection200Response.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 { SaleSummaryJsonld } from './saleSummaryJsonld'; +import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; +import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; + + +export interface ApiSaleSummariesGetCollection200Response { + 'hydra:member': Array; + 'hydra:totalItems'?: number; + 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; + 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiSaleSummariesGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiSaleSummariesGetCollection200Response1.ts new file mode 100644 index 0000000..f9fa58f --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiSaleSummariesGetCollection200Response1.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 { SaleSummaryJsonhal } from './saleSummaryJsonhal'; + + +export interface ApiSaleSummariesGetCollection200Response1 { + _embedded: Array; + totalItems?: number; + itemsPerPage?: number; + _links: ApiCommentsGetCollection200Response1Links; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiSalesGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiSalesGetCollection200Response.ts new file mode 100644 index 0000000..39bde13 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiSalesGetCollection200Response.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 { SaleJsonld } from './saleJsonld'; +import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; +import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; + + +export interface ApiSalesGetCollection200Response { + 'hydra:member': Array; + 'hydra:totalItems'?: number; + 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; + 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiSalesGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiSalesGetCollection200Response1.ts new file mode 100644 index 0000000..f280555 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiSalesGetCollection200Response1.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 { SaleJsonhal } from './saleJsonhal'; + + +export interface ApiSalesGetCollection200Response1 { + _embedded: Array; + totalItems?: number; + itemsPerPage?: number; + _links: ApiCommentsGetCollection200Response1Links; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiTaskNotesGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiTaskNotesGetCollection200Response.ts new file mode 100644 index 0000000..917b9c9 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiTaskNotesGetCollection200Response.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 { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; +import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; +import { TaskNoteJsonld } from './taskNoteJsonld'; + + +export interface ApiTaskNotesGetCollection200Response { + 'hydra:member': Array; + 'hydra:totalItems'?: number; + 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; + 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiTaskNotesGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiTaskNotesGetCollection200Response1.ts new file mode 100644 index 0000000..ba4a200 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiTaskNotesGetCollection200Response1.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 { TaskNoteJsonhal } from './taskNoteJsonhal'; + + +export interface ApiTaskNotesGetCollection200Response1 { + _embedded: Array; + totalItems?: number; + itemsPerPage?: number; + _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 index 963730a..1ab439a 100644 --- a/matsen-tool/src/app/core/api/v1/model/comment.ts +++ b/matsen-tool/src/app/core/api/v1/model/comment.ts @@ -16,7 +16,7 @@ */ export interface Comment { message: string | null; - readonly owner?: string | null; + readonly owner?: string; readonly ownerName?: string | null; post?: 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 index a6160f2..9159902 100644 --- a/matsen-tool/src/app/core/api/v1/model/commentJsonhal.ts +++ b/matsen-tool/src/app/core/api/v1/model/commentJsonhal.ts @@ -18,7 +18,7 @@ import { CommentJsonhalLinks } from './commentJsonhalLinks'; export interface CommentJsonhal { _links?: CommentJsonhalLinks; message: string | null; - readonly owner?: string | null; + readonly owner?: string; readonly ownerName?: string | null; post?: string | null; readonly createdAt?: string | null; diff --git a/matsen-tool/src/app/core/api/v1/model/commentJsonld.ts b/matsen-tool/src/app/core/api/v1/model/commentJsonld.ts index eccb53a..c7345ee 100644 --- a/matsen-tool/src/app/core/api/v1/model/commentJsonld.ts +++ b/matsen-tool/src/app/core/api/v1/model/commentJsonld.ts @@ -20,7 +20,7 @@ export interface CommentJsonld { readonly id?: string; readonly type?: string; message: string | null; - readonly owner?: string | null; + readonly owner?: string; readonly ownerName?: string | null; post?: string | null; readonly createdAt?: 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 8e5eada..f208d8a 100644 --- a/matsen-tool/src/app/core/api/v1/model/models.ts +++ b/matsen-tool/src/app/core/api/v1/model/models.ts @@ -15,6 +15,12 @@ export * from './apiPostsGetCollection200Response'; export * from './apiPostsGetCollection200Response1'; export * from './apiProductsGetCollection200Response'; export * from './apiProductsGetCollection200Response1'; +export * from './apiSaleSummariesGetCollection200Response'; +export * from './apiSaleSummariesGetCollection200Response1'; +export * from './apiSalesGetCollection200Response'; +export * from './apiSalesGetCollection200Response1'; +export * from './apiTaskNotesGetCollection200Response'; +export * from './apiTaskNotesGetCollection200Response1'; export * from './apiTasksGetCollection200Response'; export * from './apiTasksGetCollection200Response1'; export * from './apiUsersGetCollection200Response'; @@ -46,9 +52,18 @@ export * from './postPostingPatch'; export * from './product'; export * from './productJsonhal'; export * from './productJsonld'; +export * from './sale'; +export * from './saleJsonhal'; +export * from './saleJsonld'; +export * from './saleSummary'; +export * from './saleSummaryJsonhal'; +export * from './saleSummaryJsonld'; export * from './task'; export * from './taskJsonhal'; export * from './taskJsonld'; +export * from './taskNote'; +export * from './taskNoteJsonhal'; +export * from './taskNoteJsonld'; export * from './user'; export * from './userJsonhal'; export * from './userJsonld'; diff --git a/matsen-tool/src/app/core/api/v1/model/partner.ts b/matsen-tool/src/app/core/api/v1/model/partner.ts index 31d34d4..6bd67fa 100644 --- a/matsen-tool/src/app/core/api/v1/model/partner.ts +++ b/matsen-tool/src/app/core/api/v1/model/partner.ts @@ -26,6 +26,9 @@ export interface Partner { logo?: string | null; readonly logoUrl?: string | null; readonly createdAt?: string | null; + /** + * array + */ posts?: Array; contacts?: Array; } 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 2a27884..47f366e 100644 --- a/matsen-tool/src/app/core/api/v1/model/partnerJsonhal.ts +++ b/matsen-tool/src/app/core/api/v1/model/partnerJsonhal.ts @@ -28,6 +28,9 @@ export interface PartnerJsonhal { logo?: string | null; readonly logoUrl?: string | null; readonly createdAt?: string | null; + /** + * array + */ posts?: Array; contacts?: Array; } diff --git a/matsen-tool/src/app/core/api/v1/model/partnerJsonld.ts b/matsen-tool/src/app/core/api/v1/model/partnerJsonld.ts index b13253f..7dd9b64 100644 --- a/matsen-tool/src/app/core/api/v1/model/partnerJsonld.ts +++ b/matsen-tool/src/app/core/api/v1/model/partnerJsonld.ts @@ -30,6 +30,9 @@ export interface PartnerJsonld { logo?: string | null; readonly logoUrl?: string | null; readonly createdAt?: string | null; + /** + * array + */ posts?: Array; contacts?: Array; } 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 ee1483e..2b8c8b3 100644 --- a/matsen-tool/src/app/core/api/v1/model/post.ts +++ b/matsen-tool/src/app/core/api/v1/model/post.ts @@ -18,10 +18,11 @@ import { Comment } from './comment'; export interface Post { headline: string | null; message: string | null; - readonly owner?: string | null; + readonly owner?: string; readonly ownerName?: string | null; partner?: string | null; contact?: string | null; + sale?: string | null; /** * array */ 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 a30a742..0666fb9 100644 --- a/matsen-tool/src/app/core/api/v1/model/postJsonhal.ts +++ b/matsen-tool/src/app/core/api/v1/model/postJsonhal.ts @@ -20,10 +20,11 @@ export interface PostJsonhal { _links?: CommentJsonhalLinks; headline: string | null; message: string | null; - readonly owner?: string | null; + readonly owner?: string; readonly ownerName?: string | null; partner?: string | null; contact?: string | null; + sale?: string | null; /** * array */ diff --git a/matsen-tool/src/app/core/api/v1/model/postJsonhalPostingCreate.ts b/matsen-tool/src/app/core/api/v1/model/postJsonhalPostingCreate.ts index eb774e1..b1d3884 100644 --- a/matsen-tool/src/app/core/api/v1/model/postJsonhalPostingCreate.ts +++ b/matsen-tool/src/app/core/api/v1/model/postJsonhalPostingCreate.ts @@ -21,5 +21,6 @@ export interface PostJsonhalPostingCreate { message: string | null; partner?: string | null; contact?: string | null; + sale?: 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 1e9de41..041404b 100644 --- a/matsen-tool/src/app/core/api/v1/model/postJsonld.ts +++ b/matsen-tool/src/app/core/api/v1/model/postJsonld.ts @@ -22,10 +22,11 @@ export interface PostJsonld { readonly type?: string; headline: string | null; message: string | null; - readonly owner?: string | null; + readonly owner?: string; readonly ownerName?: string | null; partner?: string | null; contact?: string | null; + sale?: string | null; /** * array */ diff --git a/matsen-tool/src/app/core/api/v1/model/postJsonldPostingCreate.ts b/matsen-tool/src/app/core/api/v1/model/postJsonldPostingCreate.ts index 8958a6d..33d956e 100644 --- a/matsen-tool/src/app/core/api/v1/model/postJsonldPostingCreate.ts +++ b/matsen-tool/src/app/core/api/v1/model/postJsonldPostingCreate.ts @@ -19,5 +19,6 @@ export interface PostJsonldPostingCreate { message: string | null; partner?: string | null; contact?: string | null; + sale?: string | null; } diff --git a/matsen-tool/src/app/core/api/v1/model/postPostingCreate.ts b/matsen-tool/src/app/core/api/v1/model/postPostingCreate.ts index 7ff9683..7d57995 100644 --- a/matsen-tool/src/app/core/api/v1/model/postPostingCreate.ts +++ b/matsen-tool/src/app/core/api/v1/model/postPostingCreate.ts @@ -19,5 +19,6 @@ export interface PostPostingCreate { message: string | null; partner?: string | null; contact?: string | null; + sale?: string | null; } diff --git a/matsen-tool/src/app/core/api/v1/model/sale.ts b/matsen-tool/src/app/core/api/v1/model/sale.ts new file mode 100644 index 0000000..b819742 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/sale.ts @@ -0,0 +1,33 @@ +/** + * 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 Sale { + readonly owner?: string; + readonly ownerName?: string | null; + partner?: string | null; + readonly partnerName?: string | null; + product?: string | null; + readonly productName?: string | null; + turnover: number | null; + profit?: number | null; + comment?: string | null; + readonly createdAt?: string | null; + /** + * array + */ + posts?: Array; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/saleJsonhal.ts b/matsen-tool/src/app/core/api/v1/model/saleJsonhal.ts new file mode 100644 index 0000000..df7477c --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/saleJsonhal.ts @@ -0,0 +1,35 @@ +/** + * 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 SaleJsonhal { + _links?: CommentJsonhalLinks; + readonly owner?: string; + readonly ownerName?: string | null; + partner?: string | null; + readonly partnerName?: string | null; + product?: string | null; + readonly productName?: string | null; + turnover: number | null; + profit?: number | null; + comment?: string | null; + readonly createdAt?: string | null; + /** + * array + */ + posts?: Array; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/saleJsonld.ts b/matsen-tool/src/app/core/api/v1/model/saleJsonld.ts new file mode 100644 index 0000000..d278f15 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/saleJsonld.ts @@ -0,0 +1,37 @@ +/** + * 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 { CommentJsonldContext } from './commentJsonldContext'; + + +/** + * + */ +export interface SaleJsonld { + context?: CommentJsonldContext; + readonly id?: string; + readonly type?: string; + readonly owner?: string; + readonly ownerName?: string | null; + partner?: string | null; + readonly partnerName?: string | null; + product?: string | null; + readonly productName?: string | null; + turnover: number | null; + profit?: number | null; + comment?: string | null; + readonly createdAt?: string | null; + /** + * array + */ + posts?: Array; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/saleSummary.ts b/matsen-tool/src/app/core/api/v1/model/saleSummary.ts new file mode 100644 index 0000000..b324e10 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/saleSummary.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. + */ + + +/** + * + */ +export interface SaleSummary { + owner?: string | null; + ownerName?: string | null; + turnover?: number | null; + profit?: number | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/saleSummaryJsonhal.ts b/matsen-tool/src/app/core/api/v1/model/saleSummaryJsonhal.ts new file mode 100644 index 0000000..70b5c8f --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/saleSummaryJsonhal.ts @@ -0,0 +1,25 @@ +/** + * 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 SaleSummaryJsonhal { + _links?: CommentJsonhalLinks; + owner?: string | null; + ownerName?: string | null; + turnover?: number | null; + profit?: number | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/saleSummaryJsonld.ts b/matsen-tool/src/app/core/api/v1/model/saleSummaryJsonld.ts new file mode 100644 index 0000000..54893f4 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/saleSummaryJsonld.ts @@ -0,0 +1,25 @@ +/** + * 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 SaleSummaryJsonld { + readonly id?: string; + readonly type?: string; + owner?: string | null; + ownerName?: string | null; + turnover?: number | null; + profit?: number | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/task.ts b/matsen-tool/src/app/core/api/v1/model/task.ts index 50b1776..b20d9fc 100644 --- a/matsen-tool/src/app/core/api/v1/model/task.ts +++ b/matsen-tool/src/app/core/api/v1/model/task.ts @@ -9,6 +9,7 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import { TaskNote } from './taskNote'; /** @@ -27,7 +28,11 @@ export interface Task { contact?: string | null; readonly contactName?: string | null; prio: Task.PrioEnum; - completed?: boolean | null; + completed: boolean | null; + /** + * array + */ + taskNotes?: Array; readonly createdAt?: string | null; } export namespace Task { diff --git a/matsen-tool/src/app/core/api/v1/model/taskJsonhal.ts b/matsen-tool/src/app/core/api/v1/model/taskJsonhal.ts index 17e90ef..8ed513b 100644 --- a/matsen-tool/src/app/core/api/v1/model/taskJsonhal.ts +++ b/matsen-tool/src/app/core/api/v1/model/taskJsonhal.ts @@ -10,6 +10,7 @@ * Do not edit the class manually. */ import { CommentJsonhalLinks } from './commentJsonhalLinks'; +import { TaskNoteJsonhal } from './taskNoteJsonhal'; /** @@ -29,7 +30,11 @@ export interface TaskJsonhal { contact?: string | null; readonly contactName?: string | null; prio: TaskJsonhal.PrioEnum; - completed?: boolean | null; + completed: boolean | null; + /** + * array + */ + taskNotes?: Array; readonly createdAt?: string | null; } export namespace TaskJsonhal { diff --git a/matsen-tool/src/app/core/api/v1/model/taskJsonld.ts b/matsen-tool/src/app/core/api/v1/model/taskJsonld.ts index e35f703..11376ed 100644 --- a/matsen-tool/src/app/core/api/v1/model/taskJsonld.ts +++ b/matsen-tool/src/app/core/api/v1/model/taskJsonld.ts @@ -10,6 +10,7 @@ * Do not edit the class manually. */ import { CommentJsonldContext } from './commentJsonldContext'; +import { TaskNoteJsonld } from './taskNoteJsonld'; /** @@ -31,7 +32,11 @@ export interface TaskJsonld { contact?: string | null; readonly contactName?: string | null; prio: TaskJsonld.PrioEnum; - completed?: boolean | null; + completed: boolean | null; + /** + * array + */ + taskNotes?: Array; readonly createdAt?: string | null; } export namespace TaskJsonld { diff --git a/matsen-tool/src/app/core/api/v1/model/taskNote.ts b/matsen-tool/src/app/core/api/v1/model/taskNote.ts new file mode 100644 index 0000000..c9fdb10 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/taskNote.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 TaskNote { + message: string | null; + readonly owner?: string; + readonly ownerName?: string | null; + task?: string | null; + readonly createdAt?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/taskNoteJsonhal.ts b/matsen-tool/src/app/core/api/v1/model/taskNoteJsonhal.ts new file mode 100644 index 0000000..c9f8216 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/taskNoteJsonhal.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 TaskNoteJsonhal { + _links?: CommentJsonhalLinks; + message: string | null; + readonly owner?: string; + readonly ownerName?: string | null; + task?: string | null; + readonly createdAt?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/taskNoteJsonld.ts b/matsen-tool/src/app/core/api/v1/model/taskNoteJsonld.ts new file mode 100644 index 0000000..80333b8 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/taskNoteJsonld.ts @@ -0,0 +1,28 @@ +/** + * 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 { CommentJsonldContext } from './commentJsonldContext'; + + +/** + * + */ +export interface TaskNoteJsonld { + context?: CommentJsonldContext; + readonly id?: string; + readonly type?: string; + message: string | null; + readonly owner?: string; + readonly ownerName?: string | null; + task?: string | null; + readonly createdAt?: string | null; +} +