From 00692f152ddb56ee195eab7ccbe56422ae9825a6 Mon Sep 17 00:00:00 2001 From: Florian Eisenmenger Date: Tue, 26 Mar 2024 13:15:55 +0100 Subject: [PATCH] wip --- matsen-tool/openapi.json | 2 +- matsen-tool/openapi.yaml | 840 +++++++++++++----- matsen-tool/src/app/_forms/apiForms.ts | 55 +- matsen-tool/src/app/app.module.ts | 4 +- .../new-contact/new-contact.component.html | 4 +- .../new-contact/new-contact.component.ts | 6 +- .../app/core/api/v1/.openapi-generator/FILES | 24 +- matsen-tool/src/app/core/api/v1/api/api.ts | 8 +- .../app/core/api/v1/api/document.service.ts | 163 ++-- .../core/api/v1/api/documentObject.service.ts | 440 +++++++++ .../core/api/v1/api/mediaObject.service.ts | 440 +++++++++ .../app/core/api/v1/api/partner.service.ts | 13 +- .../core/api/v1/api/partnerFollow.service.ts | 20 +- .../app/core/api/v1/api/product.service.ts | 13 +- .../src/app/core/api/v1/api/task.service.ts | 20 +- ...DocumentObjectsGetCollection200Response.ts | 23 + ...ocumentObjectsGetCollection200Response1.ts | 22 + .../apiDocumentsGetCollection200Response.ts | 4 +- .../apiDocumentsGetCollection200Response1.ts | 4 +- ...apiMediaObjectsGetCollection200Response.ts | 23 + ...piMediaObjectsGetCollection200Response1.ts | 22 + .../src/app/core/api/v1/model/document.ts | 30 + .../app/core/api/v1/model/documentJsonhal.ts | 32 + .../app/core/api/v1/model/documentJsonld.ts | 34 + .../model/documentObjectDocumentObjectRead.ts | 20 + ...documentObjectJsonhalDocumentObjectRead.ts | 22 + .../documentObjectJsonldDocumentObjectRead.ts | 24 + .../mediaObjectJsonhalMediaObjectRead.ts | 22 + .../model/mediaObjectJsonldMediaObjectRead.ts | 24 + .../v1/model/mediaObjectMediaObjectRead.ts | 20 + .../src/app/core/api/v1/model/models.ts | 21 +- .../documents-detail.component.html | 1 + .../documents-detail.component.scss | 0 .../documents-detail.component.spec.ts | 23 + .../documents-detail.component.ts | 10 + .../app/documents/documents.component.html | 65 +- .../src/app/documents/documents.component.ts | 39 +- .../new-document/new-document.component.html | 51 +- .../new-document/new-document.component.ts | 138 ++- matsen-tool/src/app/home/home.component.html | 70 ++ matsen-tool/src/app/home/home.component.ts | 2 - .../new-partner/new-partner.component.html | 47 +- .../new-partner/new-partner.component.ts | 11 +- .../partners-detail.component.html | 6 +- .../partners-detail.component.ts | 49 +- .../src/app/partners/partners.component.html | 10 +- .../src/app/partners/partners.component.ts | 53 +- .../new-product/new-product.component.html | 4 +- .../new-product/new-product.component.ts | 6 +- .../new-task-note.component.html | 13 +- .../tasks/new-task/new-task.component.html | 50 +- .../app/tasks/new-task/new-task.component.ts | 22 +- matsen-tool/src/assets/i18n/de.json | 12 +- 53 files changed, 2541 insertions(+), 540 deletions(-) create mode 100644 matsen-tool/src/app/core/api/v1/api/documentObject.service.ts create mode 100644 matsen-tool/src/app/core/api/v1/api/mediaObject.service.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/apiDocumentObjectsGetCollection200Response.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/apiDocumentObjectsGetCollection200Response1.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response1.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/document.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/documentJsonhal.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/documentJsonld.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/documentObjectDocumentObjectRead.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/documentObjectJsonhalDocumentObjectRead.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/documentObjectJsonldDocumentObjectRead.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/mediaObjectJsonhalMediaObjectRead.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/mediaObjectJsonldMediaObjectRead.ts create mode 100644 matsen-tool/src/app/core/api/v1/model/mediaObjectMediaObjectRead.ts create mode 100644 matsen-tool/src/app/documents/documents-detail/documents-detail.component.html create mode 100644 matsen-tool/src/app/documents/documents-detail/documents-detail.component.scss create mode 100644 matsen-tool/src/app/documents/documents-detail/documents-detail.component.spec.ts create mode 100644 matsen-tool/src/app/documents/documents-detail/documents-detail.component.ts diff --git a/matsen-tool/openapi.json b/matsen-tool/openapi.json index 8c73cf9..f9950e9 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\/documents":{"get":{"operationId":"api_documents_get_collection","tags":["Document"],"responses":{"200":{"description":"Document collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Document.jsonld-document_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\/Document-document_object.read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Document-document_object.read"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Document.jsonhal-document_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 Document resources.","description":"Retrieves the collection of Document 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":"product","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"product[]","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_documents_post","tags":["Document"],"responses":{"201":{"description":"Document resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonld-document_object.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Document-document_object.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Document-document_object.read"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonhal-document_object.read"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Document resource.","description":"Creates a Document resource.","parameters":[],"requestBody":{"description":"","content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","required":true},"description":{"type":"text","required":true},"file":{"type":"string","format":"binary"},"partner":{"type":"string","format":"iri_reference","example":"https:\/\/example.com\/"},"product":{"type":"string","format":"iri_reference","example":"https:\/\/example.com\/"}}}}},"required":false},"deprecated":false},"parameters":[]},"\/api\/documents\/{id}":{"get":{"operationId":"api_documents_id_get","tags":["Document"],"responses":{"200":{"description":"Document resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonld-document_object.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Document-document_object.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Document-document_object.read"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonhal-document_object.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Document resource.","description":"Retrieves a Document resource.","parameters":[{"name":"id","in":"path","description":"DocumentObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_documents_id_delete","tags":["Document"],"responses":{"204":{"description":"Document resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Document resource.","description":"Removes the Document resource.","parameters":[{"name":"id","in":"path","description":"DocumentObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/media":{"get":{"operationId":"api_media_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_media_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\/media\/{id}":{"get":{"operationId":"api_media_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_media_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\/partner_follows":{"get":{"operationId":"api_partner_follows_get_collection","tags":["PartnerFollow"],"responses":{"200":{"description":"PartnerFollow collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PartnerFollow.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\/PartnerFollow"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PartnerFollow"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/PartnerFollow.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 PartnerFollow resources.","description":"Retrieves the collection of PartnerFollow 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_partner_follows_post","tags":["PartnerFollow"],"responses":{"201":{"description":"PartnerFollow resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a PartnerFollow resource.","description":"Creates a PartnerFollow resource.","parameters":[],"requestBody":{"description":"The new PartnerFollow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/partner_follows\/{id}":{"get":{"operationId":"api_partner_follows_id_get","tags":["PartnerFollow"],"responses":{"200":{"description":"PartnerFollow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a PartnerFollow resource.","description":"Retrieves a PartnerFollow resource.","parameters":[{"name":"id","in":"path","description":"PartnerFollowApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_partner_follows_id_delete","tags":["PartnerFollow"],"responses":{"204":{"description":"PartnerFollow resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the PartnerFollow resource.","description":"Removes the PartnerFollow resource.","parameters":[{"name":"id","in":"path","description":"PartnerFollowApi 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},{"name":"firstName","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"lastName","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"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"],"format":"date-time"},"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"],"format":"date-time"},"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"],"format":"date-time"},"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"}}},"Document-document_object.read":{"type":"object","description":"","deprecated":false,"externalDocs":{"url":"https:\/\/schema.org\/MediaObject"},"properties":{"createdBy":{"$ref":"#\/components\/schemas\/User-document_object.read"},"name":{"type":"string"},"description":{"type":["string","null"]},"partner":{"anyOf":[{"$ref":"#\/components\/schemas\/Partner-document_object.read"},{"type":"null"}]},"product":{"anyOf":[{"$ref":"#\/components\/schemas\/Product-document_object.read"},{"type":"null"}]},"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]},"createdAt":{"readOnly":true,"type":"string","format":"date-time"}}},"Document.jsonhal-document_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"}}}}},"createdBy":{"$ref":"#\/components\/schemas\/User.jsonhal-document_object.read"},"name":{"type":"string"},"description":{"type":["string","null"]},"partner":{"anyOf":[{"$ref":"#\/components\/schemas\/Partner.jsonhal-document_object.read"},{"type":"null"}]},"product":{"anyOf":[{"$ref":"#\/components\/schemas\/Product.jsonhal-document_object.read"},{"type":"null"}]},"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]},"createdAt":{"readOnly":true,"type":"string","format":"date-time"}}},"Document.jsonld-document_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"},"createdBy":{"$ref":"#\/components\/schemas\/User.jsonld-document_object.read"},"name":{"type":"string"},"description":{"type":["string","null"]},"partner":{"anyOf":[{"$ref":"#\/components\/schemas\/Partner.jsonld-document_object.read"},{"type":"null"}]},"product":{"anyOf":[{"$ref":"#\/components\/schemas\/Product.jsonld-document_object.read"},{"type":"null"}]},"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]},"createdAt":{"readOnly":true,"type":"string","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-document_object.read":{"type":"object","description":"","deprecated":false},"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.jsonhal-document_object.read":{"type":"object","description":"","deprecated":false},"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\/"}}}},"Partner.jsonld-document_object.read":{"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"}}},"PartnerFollow":{"type":"object","description":"","deprecated":false,"properties":{"user":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"userName":{"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"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["partner"]},"PartnerFollow.jsonhal":{"type":"object","description":"","deprecated":false,"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"user":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"userName":{"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"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["partner"]},"PartnerFollow.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"},"user":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"userName":{"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"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["partner"]},"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\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"readOnly":true,"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","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\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"readOnly":true,"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","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\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"readOnly":true,"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-document_object.read":{"type":"object","description":"","deprecated":false},"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.jsonhal-document_object.read":{"type":"object","description":"","deprecated":false},"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"}}},"Product.jsonld-document_object.read":{"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"}}},"Sale":{"type":"object","description":"","deprecated":false,"properties":{"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\/"},"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","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\/"},"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","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\/"},"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":{"readOnly":true,"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":{"readOnly":true,"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":{"readOnly":true,"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","null"],"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","null"],"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","null"],"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-document_object.read":{"type":"object","description":"","deprecated":false},"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.jsonhal-document_object.read":{"type":"object","description":"","deprecated":false},"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"}}},"User.jsonld-document_object.read":{"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"}}}},"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\/document_objects":{"get":{"operationId":"api_document_objects_get_collection","tags":["DocumentObject"],"responses":{"200":{"description":"DocumentObject collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/DocumentObject.jsonld-document_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\/DocumentObject-document_object.read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/DocumentObject-document_object.read"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/DocumentObject.jsonhal-document_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 DocumentObject resources.","description":"Retrieves the collection of DocumentObject 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_document_objects_post","tags":["DocumentObject"],"responses":{"201":{"description":"DocumentObject resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/DocumentObject.jsonld-document_object.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DocumentObject-document_object.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/DocumentObject-document_object.read"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/DocumentObject.jsonhal-document_object.read"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a DocumentObject resource.","description":"Creates a DocumentObject resource.","parameters":[],"requestBody":{"description":"","content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"required":false},"deprecated":false},"parameters":[]},"\/api\/document_objects\/{id}":{"get":{"operationId":"api_document_objects_id_get","tags":["DocumentObject"],"responses":{"200":{"description":"DocumentObject resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/DocumentObject.jsonld-document_object.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DocumentObject-document_object.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/DocumentObject-document_object.read"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/DocumentObject.jsonhal-document_object.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a DocumentObject resource.","description":"Retrieves a DocumentObject resource.","parameters":[{"name":"id","in":"path","description":"DocumentObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_document_objects_id_delete","tags":["DocumentObject"],"responses":{"204":{"description":"DocumentObject resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the DocumentObject resource.","description":"Removes the DocumentObject resource.","parameters":[{"name":"id","in":"path","description":"DocumentObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/documents":{"get":{"operationId":"api_documents_get_collection","tags":["Document"],"responses":{"200":{"description":"Document collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Document.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\/Document"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Document"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/Document.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 Document resources.","description":"Retrieves the collection of Document 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":"product","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"product[]","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_documents_post","tags":["Document"],"responses":{"201":{"description":"Document resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Document"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Document"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Document resource.","description":"Creates a Document resource.","parameters":[],"requestBody":{"description":"The new Document resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Document"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Document"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/documents\/{id}":{"get":{"operationId":"api_documents_id_get","tags":["Document"],"responses":{"200":{"description":"Document resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Document"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Document"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Document resource.","description":"Retrieves a Document resource.","parameters":[{"name":"id","in":"path","description":"DocumentApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_documents_id_delete","tags":["Document"],"responses":{"204":{"description":"Document resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the Document resource.","description":"Removes the Document resource.","parameters":[{"name":"id","in":"path","description":"DocumentApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_documents_id_patch","tags":["Document"],"responses":{"200":{"description":"Document resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Document"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Document"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/Document.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Document resource.","description":"Updates the Document resource.","parameters":[{"name":"id","in":"path","description":"DocumentApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Document resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Document"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/media_objects":{"get":{"operationId":"api_media_objects_get_collection","tags":["MediaObject"],"responses":{"200":{"description":"MediaObject collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/MediaObject.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\/MediaObject-media_object.read"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/MediaObject-media_object.read"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/MediaObject.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 MediaObject resources.","description":"Retrieves the collection of MediaObject 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_media_objects_post","tags":["MediaObject"],"responses":{"201":{"description":"MediaObject resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/MediaObject.jsonld-media_object.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MediaObject-media_object.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/MediaObject-media_object.read"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/MediaObject.jsonhal-media_object.read"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a MediaObject resource.","description":"Creates a MediaObject resource.","parameters":[],"requestBody":{"description":"","content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"required":false},"deprecated":false},"parameters":[]},"\/api\/media_objects\/{id}":{"get":{"operationId":"api_media_objects_id_get","tags":["MediaObject"],"responses":{"200":{"description":"MediaObject resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/MediaObject.jsonld-media_object.read"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MediaObject-media_object.read"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/MediaObject-media_object.read"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/MediaObject.jsonhal-media_object.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a MediaObject resource.","description":"Retrieves a MediaObject 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_media_objects_id_delete","tags":["MediaObject"],"responses":{"204":{"description":"MediaObject resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the MediaObject resource.","description":"Removes the MediaObject 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\/partner_follows":{"get":{"operationId":"api_partner_follows_get_collection","tags":["PartnerFollow"],"responses":{"200":{"description":"PartnerFollow collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/PartnerFollow.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\/PartnerFollow"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/PartnerFollow"}}},"application\/hal+json":{"schema":{"type":"object","properties":{"_embedded":{"type":"array","items":{"$ref":"#\/components\/schemas\/PartnerFollow.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 PartnerFollow resources.","description":"Retrieves the collection of PartnerFollow 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":"user","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"user[]","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_partner_follows_post","tags":["PartnerFollow"],"responses":{"201":{"description":"PartnerFollow resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonhal"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a PartnerFollow resource.","description":"Creates a PartnerFollow resource.","parameters":[],"requestBody":{"description":"The new PartnerFollow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonhal"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/partner_follows\/{id}":{"get":{"operationId":"api_partner_follows_id_get","tags":["PartnerFollow"],"responses":{"200":{"description":"PartnerFollow resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonld"}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow"}},"application\/hal+json":{"schema":{"$ref":"#\/components\/schemas\/PartnerFollow.jsonhal"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a PartnerFollow resource.","description":"Retrieves a PartnerFollow resource.","parameters":[{"name":"id","in":"path","description":"PartnerFollowApi identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_partner_follows_id_delete","tags":["PartnerFollow"],"responses":{"204":{"description":"PartnerFollow resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the PartnerFollow resource.","description":"Removes the PartnerFollow resource.","parameters":[{"name":"id","in":"path","description":"PartnerFollowApi 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":"name","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"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},{"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":"name","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"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":"assignedTo","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"assignedTo[]","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},{"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},{"name":"firstName","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"lastName","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"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"],"format":"date-time"},"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"],"format":"date-time"},"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"],"format":"date-time"},"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"}}},"Document":{"type":"object","description":"","deprecated":false,"properties":{"createdBy":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdByName":{"readOnly":true,"type":["string","null"]},"name":{"type":["string","null"]},"description":{"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"]},"documentObject":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"documentUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["name","documentObject"]},"Document.jsonhal":{"type":"object","description":"","deprecated":false,"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"createdBy":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdByName":{"readOnly":true,"type":["string","null"]},"name":{"type":["string","null"]},"description":{"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"]},"documentObject":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"documentUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["name","documentObject"]},"Document.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"},"createdBy":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"createdByName":{"readOnly":true,"type":["string","null"]},"name":{"type":["string","null"]},"description":{"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"]},"documentObject":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"documentUrl":{"readOnly":true,"type":["string","null"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["name","documentObject"]},"DocumentObject-document_object.read":{"type":"object","description":"","deprecated":false,"externalDocs":{"url":"https:\/\/schema.org\/MediaObject"},"properties":{"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]}}},"DocumentObject.jsonhal-document_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"]}}},"DocumentObject.jsonld-document_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"]}}},"MediaObject-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"]}}},"MediaObject.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"]}}},"MediaObject.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\/"}}}},"PartnerFollow":{"type":"object","description":"","deprecated":false,"properties":{"user":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"userName":{"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"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["partner"]},"PartnerFollow.jsonhal":{"type":"object","description":"","deprecated":false,"properties":{"_links":{"type":"object","properties":{"self":{"type":"object","properties":{"href":{"type":"string","format":"iri-reference"}}}}},"user":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"userName":{"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"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["partner"]},"PartnerFollow.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"},"user":{"readOnly":true,"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"userName":{"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"]},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["partner"]},"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\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"readOnly":true,"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","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\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"readOnly":true,"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","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\/"},"sale":{"owl:maxCardinality":1,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"comments":{"readOnly":true,"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","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\/"},"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","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\/"},"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","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\/"},"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":{"readOnly":true,"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":{"readOnly":true,"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":{"readOnly":true,"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","null"],"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","null"],"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","null"],"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 0bb93ec..934616e 100644 --- a/matsen-tool/openapi.yaml +++ b/matsen-tool/openapi.yaml @@ -500,6 +500,184 @@ paths: required: true deprecated: false parameters: [] + /api/document_objects: + get: + operationId: api_document_objects_get_collection + tags: + - DocumentObject + responses: + 200: + description: 'DocumentObject collection' + content: + application/ld+json: + schema: + type: object + properties: + 'hydra:member': { type: array, items: { $ref: '#/components/schemas/DocumentObject.jsonld-document_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/DocumentObject-document_object.read' + text/html: + schema: + type: array + items: + $ref: '#/components/schemas/DocumentObject-document_object.read' + application/hal+json: + schema: + type: object + properties: + _embedded: { type: array, items: { $ref: '#/components/schemas/DocumentObject.jsonhal-document_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 DocumentObject resources.' + description: 'Retrieves the collection of DocumentObject 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_document_objects_post + tags: + - DocumentObject + responses: + 201: + description: 'DocumentObject resource created' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/DocumentObject.jsonld-document_object.read' + application/json: + schema: + $ref: '#/components/schemas/DocumentObject-document_object.read' + text/html: + schema: + $ref: '#/components/schemas/DocumentObject-document_object.read' + application/hal+json: + schema: + $ref: '#/components/schemas/DocumentObject.jsonhal-document_object.read' + links: { } + 400: + description: 'Invalid input' + 422: + description: 'Unprocessable entity' + summary: 'Creates a DocumentObject resource.' + description: 'Creates a DocumentObject resource.' + parameters: [] + requestBody: + description: '' + content: + multipart/form-data: + schema: + type: object + properties: + file: + type: string + format: binary + required: false + deprecated: false + parameters: [] + '/api/document_objects/{id}': + get: + operationId: api_document_objects_id_get + tags: + - DocumentObject + responses: + 200: + description: 'DocumentObject resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/DocumentObject.jsonld-document_object.read' + application/json: + schema: + $ref: '#/components/schemas/DocumentObject-document_object.read' + text/html: + schema: + $ref: '#/components/schemas/DocumentObject-document_object.read' + application/hal+json: + schema: + $ref: '#/components/schemas/DocumentObject.jsonhal-document_object.read' + 404: + description: 'Resource not found' + summary: 'Retrieves a DocumentObject resource.' + description: 'Retrieves a DocumentObject resource.' + parameters: + - + name: id + in: path + description: 'DocumentObject identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_document_objects_id_delete + tags: + - DocumentObject + responses: + 204: + description: 'DocumentObject resource deleted' + 404: + description: 'Resource not found' + summary: 'Removes the DocumentObject resource.' + description: 'Removes the DocumentObject resource.' + parameters: + - + name: id + in: path + description: 'DocumentObject identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + parameters: [] /api/documents: get: operationId: api_documents_get_collection @@ -513,7 +691,7 @@ paths: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/Document.jsonld-document_object.read' } } + 'hydra:member': { type: array, items: { $ref: '#/components/schemas/Document.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 } } } } } } @@ -523,17 +701,17 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Document-document_object.read' + $ref: '#/components/schemas/Document' text/html: schema: type: array items: - $ref: '#/components/schemas/Document-document_object.read' + $ref: '#/components/schemas/Document' application/hal+json: schema: type: object properties: - _embedded: { type: array, items: { $ref: '#/components/schemas/Document.jsonhal-document_object.read' } } + _embedded: { type: array, items: { $ref: '#/components/schemas/Document.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 } } } } } @@ -634,16 +812,16 @@ paths: content: application/ld+json: schema: - $ref: '#/components/schemas/Document.jsonld-document_object.read' + $ref: '#/components/schemas/Document.jsonld' application/json: schema: - $ref: '#/components/schemas/Document-document_object.read' + $ref: '#/components/schemas/Document' text/html: schema: - $ref: '#/components/schemas/Document-document_object.read' + $ref: '#/components/schemas/Document' application/hal+json: schema: - $ref: '#/components/schemas/Document.jsonhal-document_object.read' + $ref: '#/components/schemas/Document.jsonhal' links: { } 400: description: 'Invalid input' @@ -653,30 +831,21 @@ paths: description: 'Creates a Document resource.' parameters: [] requestBody: - description: '' + description: 'The new Document resource' content: - multipart/form-data: + application/ld+json: schema: - type: object - properties: - name: - type: string - required: true - description: - type: text - required: true - file: - type: string - format: binary - partner: - type: string - format: iri_reference - example: 'https://example.com/' - product: - type: string - format: iri_reference - example: 'https://example.com/' - required: false + $ref: '#/components/schemas/Document.jsonld' + application/json: + schema: + $ref: '#/components/schemas/Document' + text/html: + schema: + $ref: '#/components/schemas/Document' + application/hal+json: + schema: + $ref: '#/components/schemas/Document.jsonhal' + required: true deprecated: false parameters: [] '/api/documents/{id}': @@ -690,16 +859,16 @@ paths: content: application/ld+json: schema: - $ref: '#/components/schemas/Document.jsonld-document_object.read' + $ref: '#/components/schemas/Document.jsonld' application/json: schema: - $ref: '#/components/schemas/Document-document_object.read' + $ref: '#/components/schemas/Document' text/html: schema: - $ref: '#/components/schemas/Document-document_object.read' + $ref: '#/components/schemas/Document' application/hal+json: schema: - $ref: '#/components/schemas/Document.jsonhal-document_object.read' + $ref: '#/components/schemas/Document.jsonhal' 404: description: 'Resource not found' summary: 'Retrieves a Document resource.' @@ -708,7 +877,7 @@ paths: - name: id in: path - description: 'DocumentObject identifier' + description: 'DocumentApi identifier' required: true deprecated: false allowEmptyValue: false @@ -733,7 +902,50 @@ paths: - name: id in: path - description: 'DocumentObject identifier' + description: 'DocumentApi identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_documents_id_patch + tags: + - Document + responses: + 200: + description: 'Document resource updated' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Document.jsonld' + application/json: + schema: + $ref: '#/components/schemas/Document' + text/html: + schema: + $ref: '#/components/schemas/Document' + application/hal+json: + schema: + $ref: '#/components/schemas/Document.jsonhal' + links: { } + 400: + description: 'Invalid input' + 422: + description: 'Unprocessable entity' + 404: + description: 'Resource not found' + summary: 'Updates the Document resource.' + description: 'Updates the Document resource.' + parameters: + - + name: id + in: path + description: 'DocumentApi identifier' required: true deprecated: false allowEmptyValue: false @@ -742,22 +954,29 @@ paths: style: simple explode: false allowReserved: false + requestBody: + description: 'The updated Document resource' + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/Document' + required: true deprecated: false parameters: [] - /api/media: + /api/media_objects: get: - operationId: api_media_get_collection + operationId: api_media_objects_get_collection tags: - - Media + - MediaObject responses: 200: - description: 'Media collection' + description: 'MediaObject collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/Media.jsonld-media_object.read' } } + 'hydra:member': { type: array, items: { $ref: '#/components/schemas/MediaObject.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 } } } } } } @@ -767,25 +986,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Media-media_object.read' + $ref: '#/components/schemas/MediaObject-media_object.read' text/html: schema: type: array items: - $ref: '#/components/schemas/Media-media_object.read' + $ref: '#/components/schemas/MediaObject-media_object.read' application/hal+json: schema: type: object properties: - _embedded: { type: array, items: { $ref: '#/components/schemas/Media.jsonhal-media_object.read' } } + _embedded: { type: array, items: { $ref: '#/components/schemas/MediaObject.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.' + summary: 'Retrieves the collection of MediaObject resources.' + description: 'Retrieves the collection of MediaObject resources.' parameters: - name: page @@ -817,32 +1036,32 @@ paths: allowReserved: false deprecated: false post: - operationId: api_media_post + operationId: api_media_objects_post tags: - - Media + - MediaObject responses: 201: - description: 'Media resource created' + description: 'MediaObject resource created' content: application/ld+json: schema: - $ref: '#/components/schemas/Media.jsonld-media_object.read' + $ref: '#/components/schemas/MediaObject.jsonld-media_object.read' application/json: schema: - $ref: '#/components/schemas/Media-media_object.read' + $ref: '#/components/schemas/MediaObject-media_object.read' text/html: schema: - $ref: '#/components/schemas/Media-media_object.read' + $ref: '#/components/schemas/MediaObject-media_object.read' application/hal+json: schema: - $ref: '#/components/schemas/Media.jsonhal-media_object.read' + $ref: '#/components/schemas/MediaObject.jsonhal-media_object.read' links: { } 400: description: 'Invalid input' 422: description: 'Unprocessable entity' - summary: 'Creates a Media resource.' - description: 'Creates a Media resource.' + summary: 'Creates a MediaObject resource.' + description: 'Creates a MediaObject resource.' parameters: [] requestBody: description: '' @@ -857,31 +1076,31 @@ paths: required: false deprecated: false parameters: [] - '/api/media/{id}': + '/api/media_objects/{id}': get: - operationId: api_media_id_get + operationId: api_media_objects_id_get tags: - - Media + - MediaObject responses: 200: - description: 'Media resource' + description: 'MediaObject resource' content: application/ld+json: schema: - $ref: '#/components/schemas/Media.jsonld-media_object.read' + $ref: '#/components/schemas/MediaObject.jsonld-media_object.read' application/json: schema: - $ref: '#/components/schemas/Media-media_object.read' + $ref: '#/components/schemas/MediaObject-media_object.read' text/html: schema: - $ref: '#/components/schemas/Media-media_object.read' + $ref: '#/components/schemas/MediaObject-media_object.read' application/hal+json: schema: - $ref: '#/components/schemas/Media.jsonhal-media_object.read' + $ref: '#/components/schemas/MediaObject.jsonhal-media_object.read' 404: description: 'Resource not found' - summary: 'Retrieves a Media resource.' - description: 'Retrieves a Media resource.' + summary: 'Retrieves a MediaObject resource.' + description: 'Retrieves a MediaObject resource.' parameters: - name: id @@ -897,16 +1116,16 @@ paths: allowReserved: false deprecated: false delete: - operationId: api_media_id_delete + operationId: api_media_objects_id_delete tags: - - Media + - MediaObject responses: 204: - description: 'Media resource deleted' + description: 'MediaObject resource deleted' 404: description: 'Resource not found' - summary: 'Removes the Media resource.' - description: 'Removes the Media resource.' + summary: 'Removes the MediaObject resource.' + description: 'Removes the MediaObject resource.' parameters: - name: id @@ -1019,6 +1238,32 @@ paths: style: form explode: true allowReserved: false + - + name: user + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: true + schema: + type: string + style: form + explode: false + allowReserved: false + - + name: 'user[]' + 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_partner_follows_post @@ -1228,6 +1473,18 @@ paths: style: form explode: true allowReserved: false + - + name: name + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: true + schema: + type: string + style: form + explode: false + allowReserved: false - name: 'order[name]' in: query @@ -1791,6 +2048,18 @@ paths: style: form explode: false allowReserved: false + - + name: name + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: true + schema: + type: string + style: form + explode: false + allowReserved: false - name: 'order[name]' in: query @@ -2657,7 +2926,7 @@ paths: explode: false allowReserved: false - - name: partner + name: assignedTo in: query description: '' required: false @@ -2669,7 +2938,7 @@ paths: explode: false allowReserved: false - - name: 'partner[]' + name: 'assignedTo[]' in: query description: '' required: false @@ -2683,7 +2952,7 @@ paths: explode: true allowReserved: false - - name: contact + name: partner in: query description: '' required: false @@ -2695,7 +2964,33 @@ paths: explode: false allowReserved: false - - name: 'contact[]' + 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 @@ -3522,49 +3817,81 @@ components: - string - 'null' format: date-time - Document-document_object.read: + Document: type: object description: '' deprecated: false - externalDocs: - url: 'https://schema.org/MediaObject' properties: createdBy: - $ref: '#/components/schemas/User-document_object.read' + readOnly: true + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + createdByName: + readOnly: true + type: + - string + - 'null' name: - type: string + type: + - string + - 'null' description: type: - string - 'null' partner: - anyOf: - - - $ref: '#/components/schemas/Partner-document_object.read' - - - type: 'null' + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + partnerName: + readOnly: true + type: + - string + - 'null' product: - anyOf: - - - $ref: '#/components/schemas/Product-document_object.read' - - - type: 'null' - contentUrl: - externalDocs: - url: 'https://schema.org/contentUrl' + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + productName: + readOnly: true + type: + - string + - 'null' + documentObject: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + documentUrl: + readOnly: true type: - string - 'null' createdAt: readOnly: true - type: string + type: + - string + - 'null' format: date-time - Document.jsonhal-document_object.read: + required: + - name + - documentObject + Document.jsonhal: type: object description: '' deprecated: false - externalDocs: - url: 'https://schema.org/MediaObject' properties: _links: type: object @@ -3576,41 +3903,75 @@ components: type: string format: iri-reference createdBy: - $ref: '#/components/schemas/User.jsonhal-document_object.read' + readOnly: true + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + createdByName: + readOnly: true + type: + - string + - 'null' name: - type: string + type: + - string + - 'null' description: type: - string - 'null' partner: - anyOf: - - - $ref: '#/components/schemas/Partner.jsonhal-document_object.read' - - - type: 'null' + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + partnerName: + readOnly: true + type: + - string + - 'null' product: - anyOf: - - - $ref: '#/components/schemas/Product.jsonhal-document_object.read' - - - type: 'null' - contentUrl: - externalDocs: - url: 'https://schema.org/contentUrl' + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + productName: + readOnly: true + type: + - string + - 'null' + documentObject: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + documentUrl: + readOnly: true type: - string - 'null' createdAt: readOnly: true - type: string + type: + - string + - 'null' format: date-time - Document.jsonld-document_object.read: + required: + - name + - documentObject + Document.jsonld: type: object description: '' deprecated: false - externalDocs: - url: 'https://schema.org/MediaObject' properties: '@context': readOnly: true @@ -3636,36 +3997,143 @@ components: readOnly: true type: string createdBy: - $ref: '#/components/schemas/User.jsonld-document_object.read' + readOnly: true + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + createdByName: + readOnly: true + type: + - string + - 'null' name: - type: string + type: + - string + - 'null' description: type: - string - 'null' partner: - anyOf: - - - $ref: '#/components/schemas/Partner.jsonld-document_object.read' - - - type: 'null' + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + partnerName: + readOnly: true + type: + - string + - 'null' product: - anyOf: - - - $ref: '#/components/schemas/Product.jsonld-document_object.read' - - - type: 'null' + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + productName: + readOnly: true + type: + - string + - 'null' + documentObject: + 'owl:maxCardinality': 1 + type: + - string + - 'null' + format: iri-reference + example: 'https://example.com/' + documentUrl: + readOnly: true + type: + - string + - 'null' + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + required: + - name + - documentObject + DocumentObject-document_object.read: + type: object + description: '' + deprecated: false + externalDocs: + url: 'https://schema.org/MediaObject' + properties: contentUrl: externalDocs: url: 'https://schema.org/contentUrl' type: - string - 'null' - createdAt: + DocumentObject.jsonhal-document_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' + DocumentObject.jsonld-document_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 - format: date-time - Media-media_object.read: + '@type': + readOnly: true + type: string + contentUrl: + externalDocs: + url: 'https://schema.org/contentUrl' + type: + - string + - 'null' + MediaObject-media_object.read: type: object description: '' deprecated: false @@ -3678,7 +4146,7 @@ components: type: - string - 'null' - Media.jsonhal-media_object.read: + MediaObject.jsonhal-media_object.read: type: object description: '' deprecated: false @@ -3700,7 +4168,7 @@ components: type: - string - 'null' - Media.jsonld-media_object.read: + MediaObject.jsonld-media_object.read: type: object description: '' deprecated: false @@ -3807,10 +4275,6 @@ components: type: string format: iri-reference example: 'https://example.com/' - Partner-document_object.read: - type: object - description: '' - deprecated: false Partner.jsonhal: type: object description: '' @@ -3891,10 +4355,6 @@ components: type: string format: iri-reference example: 'https://example.com/' - Partner.jsonhal-document_object.read: - type: object - description: '' - deprecated: false Partner.jsonld: type: object description: '' @@ -3989,34 +4449,6 @@ components: type: string format: iri-reference example: 'https://example.com/' - Partner.jsonld-document_object.read: - 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 PartnerFollow: type: object description: '' @@ -4547,10 +4979,6 @@ components: - string - 'null' format: date-time - Product-document_object.read: - type: object - description: '' - deprecated: false Product.jsonhal: type: object description: '' @@ -4590,10 +5018,6 @@ components: - string - 'null' format: date-time - Product.jsonhal-document_object.read: - type: object - description: '' - deprecated: false Product.jsonld: type: object description: '' @@ -4647,34 +5071,6 @@ components: - string - 'null' format: date-time - Product.jsonld-document_object.read: - 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 Sale: type: object description: '' @@ -5506,10 +5902,6 @@ components: - string - 'null' format: date-time - User-document_object.read: - type: object - description: '' - deprecated: false User.jsonhal: type: object description: '' @@ -5564,10 +5956,6 @@ components: - string - 'null' format: date-time - User.jsonhal-document_object.read: - type: object - description: '' - deprecated: false User.jsonld: type: object description: '' @@ -5636,34 +6024,6 @@ components: - string - 'null' format: date-time - User.jsonld-document_object.read: - 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 responses: { } parameters: { } examples: { } diff --git a/matsen-tool/src/app/_forms/apiForms.ts b/matsen-tool/src/app/_forms/apiForms.ts index ab8f7a8..6683503 100644 --- a/matsen-tool/src/app/_forms/apiForms.ts +++ b/matsen-tool/src/app/_forms/apiForms.ts @@ -68,29 +68,72 @@ export const contactJsonldForm = new FormGroup({ createdAt: new FormControl(null, []) }); -export const documentDocumentObjectReadForm = new FormGroup({ +export const documentForm = new FormGroup({ + createdBy: new FormControl(null, []), + createdByName: new FormControl(null, []), + name: new FormControl(null, [Validators.required]), + description: new FormControl(null, []), + partner: new FormControl(null, []), + partnerName: new FormControl(null, []), + product: new FormControl(null, []), + productName: new FormControl(null, []), + documentObject: new FormControl(null, [Validators.required]), + documentUrl: new FormControl(null, []), + createdAt: new FormControl(null, []) +}); + +export const documentJsonhalForm = new FormGroup({ + _links: new FormControl(null, []), + createdBy: new FormControl(null, []), + createdByName: new FormControl(null, []), + name: new FormControl(null, [Validators.required]), + description: new FormControl(null, []), + partner: new FormControl(null, []), + partnerName: new FormControl(null, []), + product: new FormControl(null, []), + productName: new FormControl(null, []), + documentObject: new FormControl(null, [Validators.required]), + documentUrl: new FormControl(null, []), + createdAt: new FormControl(null, []) +}); + +export const documentJsonldForm = new FormGroup({ + createdBy: new FormControl(null, []), + createdByName: new FormControl(null, []), + name: new FormControl(null, [Validators.required]), + description: new FormControl(null, []), + partner: new FormControl(null, []), + partnerName: new FormControl(null, []), + product: new FormControl(null, []), + productName: new FormControl(null, []), + documentObject: new FormControl(null, [Validators.required]), + documentUrl: new FormControl(null, []), + createdAt: new FormControl(null, []) +}); + +export const documentObjectDocumentObjectReadForm = new FormGroup({ contentUrl: new FormControl(null, []) }); -export const documentJsonhalDocumentObjectReadForm = new FormGroup({ +export const documentObjectJsonhalDocumentObjectReadForm = new FormGroup({ _links: new FormControl(null, []), contentUrl: new FormControl(null, []) }); -export const documentJsonldDocumentObjectReadForm = new FormGroup({ +export const documentObjectJsonldDocumentObjectReadForm = new FormGroup({ contentUrl: new FormControl(null, []) }); -export const mediaMediaObjectReadForm = new FormGroup({ +export const mediaObjectMediaObjectReadForm = new FormGroup({ contentUrl: new FormControl(null, []) }); -export const mediaJsonhalMediaObjectReadForm = new FormGroup({ +export const mediaObjectJsonhalMediaObjectReadForm = new FormGroup({ _links: new FormControl(null, []), contentUrl: new FormControl(null, []) }); -export const mediaJsonldMediaObjectReadForm = new FormGroup({ +export const mediaObjectJsonldMediaObjectReadForm = new FormGroup({ contentUrl: new FormControl(null, []) }); diff --git a/matsen-tool/src/app/app.module.ts b/matsen-tool/src/app/app.module.ts index 708d964..e5a7ec5 100644 --- a/matsen-tool/src/app/app.module.ts +++ b/matsen-tool/src/app/app.module.ts @@ -42,6 +42,7 @@ import {MatAutocompleteModule} from "@angular/material/autocomplete"; import {MatFormFieldModule} from "@angular/material/form-field"; import {MatInputModule} from "@angular/material/input"; import { NewTaskNoteComponent } from './tasks/new-task-note/new-task-note.component'; +import { DocumentsDetailComponent } from './documents/documents-detail/documents-detail.component'; export function apiConfigFactory(): Configuration { const params: ConfigurationParameters = { @@ -104,7 +105,8 @@ export function HttpLoaderFactory(http: HttpClient) { NewDocumentComponent, NewProductComponent, NewCommentComponent, - NewTaskNoteComponent + NewTaskNoteComponent, + DocumentsDetailComponent ], providers: [ {provide: HTTP_INTERCEPTORS, useClass: JwtInterceptor, multi: true}, diff --git a/matsen-tool/src/app/contacts/new-contact/new-contact.component.html b/matsen-tool/src/app/contacts/new-contact/new-contact.component.html index 30c90d9..fcb1da4 100644 --- a/matsen-tool/src/app/contacts/new-contact/new-contact.component.html +++ b/matsen-tool/src/app/contacts/new-contact/new-contact.component.html @@ -46,9 +46,9 @@ -
+
- +

{{'system.delete-image' | translate}}

diff --git a/matsen-tool/src/app/contacts/new-contact/new-contact.component.ts b/matsen-tool/src/app/contacts/new-contact/new-contact.component.ts index 4f7b67b..1c78218 100644 --- a/matsen-tool/src/app/contacts/new-contact/new-contact.component.ts +++ b/matsen-tool/src/app/contacts/new-contact/new-contact.component.ts @@ -1,7 +1,7 @@ import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {FormGroup} from "@angular/forms"; import {contactForm} from "@app/_forms/apiForms"; -import {ContactJsonld, ContactService, MediaService} from "@app/core/api/v1"; +import {ContactJsonld, ContactService, MediaObjectService} from "@app/core/api/v1"; import {Subscription} from "rxjs"; import {ModalStatus} from "@app/_helpers/modal.states"; import {FormGroupInitializer} from "@app/_helpers/formgroup.initializer"; @@ -26,7 +26,7 @@ export class NewContactComponent implements OnInit { constructor( private contactService: ContactService, - private mediaService: MediaService, + private mediaObjectService: MediaObjectService, private translateService: TranslateService ) { this.contactForm = contactForm; @@ -43,7 +43,7 @@ export class NewContactComponent implements OnInit { // On submit form: Check if image is set onSubmit() { if (this.selectedImage !== null) { - this.mediaSub = this.mediaService.mediasPost( + this.mediaSub = this.mediaObjectService.mediaObjectsPost( this.selectedImage ).subscribe( data => { 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 646b3b6..3b0b9dc 100644 --- a/matsen-tool/src/app/core/api/v1/.openapi-generator/FILES +++ b/matsen-tool/src/app/core/api/v1/.openapi-generator/FILES @@ -5,8 +5,9 @@ api/api.ts api/comment.service.ts api/contact.service.ts api/document.service.ts +api/documentObject.service.ts api/loginCheck.service.ts -api/media.service.ts +api/mediaObject.service.ts api/partner.service.ts api/partnerFollow.service.ts api/post.service.ts @@ -29,10 +30,12 @@ model/apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner.ts model/apiCommentsGetCollection200ResponseHydraView.ts model/apiContactsGetCollection200Response.ts model/apiContactsGetCollection200Response1.ts +model/apiDocumentObjectsGetCollection200Response.ts +model/apiDocumentObjectsGetCollection200Response1.ts model/apiDocumentsGetCollection200Response.ts model/apiDocumentsGetCollection200Response1.ts -model/apiMediasGetCollection200Response.ts -model/apiMediasGetCollection200Response1.ts +model/apiMediaObjectsGetCollection200Response.ts +model/apiMediaObjectsGetCollection200Response1.ts model/apiPartnerFollowsGetCollection200Response.ts model/apiPartnerFollowsGetCollection200Response1.ts model/apiPartnersGetCollection200Response.ts @@ -60,14 +63,17 @@ model/commentJsonldContextOneOf.ts model/contact.ts model/contactJsonhal.ts model/contactJsonld.ts -model/documentDocumentObjectRead.ts -model/documentJsonhalDocumentObjectRead.ts -model/documentJsonldDocumentObjectRead.ts +model/document.ts +model/documentJsonhal.ts +model/documentJsonld.ts +model/documentObjectDocumentObjectRead.ts +model/documentObjectJsonhalDocumentObjectRead.ts +model/documentObjectJsonldDocumentObjectRead.ts model/loginCheckPost200Response.ts model/loginCheckPostRequest.ts -model/mediaJsonhalMediaObjectRead.ts -model/mediaJsonldMediaObjectRead.ts -model/mediaMediaObjectRead.ts +model/mediaObjectJsonhalMediaObjectRead.ts +model/mediaObjectJsonldMediaObjectRead.ts +model/mediaObjectMediaObjectRead.ts model/models.ts model/partner.ts model/partnerFollow.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 11d7b9f..f7e1bc6 100644 --- a/matsen-tool/src/app/core/api/v1/api/api.ts +++ b/matsen-tool/src/app/core/api/v1/api/api.ts @@ -4,10 +4,12 @@ export * from './contact.service'; import { ContactService } from './contact.service'; export * from './document.service'; import { DocumentService } from './document.service'; +export * from './documentObject.service'; +import { DocumentObjectService } from './documentObject.service'; export * from './loginCheck.service'; import { LoginCheckService } from './loginCheck.service'; -export * from './media.service'; -import { MediaService } from './media.service'; +export * from './mediaObject.service'; +import { MediaObjectService } from './mediaObject.service'; export * from './partner.service'; import { PartnerService } from './partner.service'; export * from './partnerFollow.service'; @@ -26,4 +28,4 @@ export * from './taskNote.service'; import { TaskNoteService } from './taskNote.service'; export * from './user.service'; import { UserService } from './user.service'; -export const APIS = [CommentService, ContactService, DocumentService, LoginCheckService, MediaService, PartnerService, PartnerFollowService, PostService, ProductService, SaleService, SaleSummaryService, TaskService, TaskNoteService, UserService]; +export const APIS = [CommentService, ContactService, DocumentService, DocumentObjectService, LoginCheckService, MediaObjectService, PartnerService, PartnerFollowService, PostService, ProductService, SaleService, SaleSummaryService, TaskService, TaskNoteService, UserService]; diff --git a/matsen-tool/src/app/core/api/v1/api/document.service.ts b/matsen-tool/src/app/core/api/v1/api/document.service.ts index e739e40..4f421c2 100644 --- a/matsen-tool/src/app/core/api/v1/api/document.service.ts +++ b/matsen-tool/src/app/core/api/v1/api/document.service.ts @@ -23,11 +23,11 @@ import { ApiDocumentsGetCollection200Response } from '../model/apiDocumentsGetCo // @ts-ignore import { ApiDocumentsGetCollection200Response1 } from '../model/apiDocumentsGetCollection200Response1'; // @ts-ignore -import { DocumentDocumentObjectRead } from '../model/documentDocumentObjectRead'; +import { Document } from '../model/document'; // @ts-ignore -import { DocumentJsonhalDocumentObjectRead } from '../model/documentJsonhalDocumentObjectRead'; +import { DocumentJsonhal } from '../model/documentJsonhal'; // @ts-ignore -import { DocumentJsonldDocumentObjectRead } from '../model/documentJsonldDocumentObjectRead'; +import { DocumentJsonld } from '../model/documentJsonld'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -62,19 +62,6 @@ export class DocumentService { this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); } - /** - * @param consumes string[] mime-types - * @return true: consumes contains 'multipart/form-data', false: otherwise - */ - private canConsumeForm(consumes: string[]): boolean { - const form = 'multipart/form-data'; - for (const consume of consumes) { - if (form === consume) { - return true; - } - } - return false; - } // @ts-ignore private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { @@ -223,7 +210,7 @@ export class DocumentService { /** * Removes the Document resource. * Removes the Document resource. - * @param id DocumentObject identifier + * @param id DocumentApi 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. */ @@ -294,13 +281,13 @@ export class DocumentService { /** * Retrieves a Document resource. * Retrieves a Document resource. - * @param id DocumentObject identifier + * @param id DocumentApi 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 documentsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; - public documentsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public documentsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public documentsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public documentsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public documentsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; public documentsIdGet(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 documentsIdGet.'); @@ -353,7 +340,7 @@ export class DocumentService { } let localVarPath = `/api/documents/${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}`, + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -367,18 +354,23 @@ export class DocumentService { } /** - * Creates a Document resource. - * Creates a Document resource. - * @param file - * @param partner - * @param product + * Updates the Document resource. + * Updates the Document resource. + * @param id DocumentApi identifier + * @param document The updated Document 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 documentsPost(file?: Blob, partner?: string, product?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; - public documentsPost(file?: Blob, partner?: string, product?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public documentsPost(file?: Blob, partner?: string, product?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public documentsPost(file?: Blob, partner?: string, product?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + public documentsIdPatch(id: string, document: Document, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public documentsIdPatch(id: string, document: Document, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public documentsIdPatch(id: string, document: Document, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public documentsIdPatch(id: string, document: Document, 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 documentsIdPatch.'); + } + if (document === null || document === undefined) { + throw new Error('Required parameter document was null or undefined when calling documentsIdPatch.'); + } let localVarHeaders = this.defaultHeaders; @@ -414,33 +406,102 @@ export class DocumentService { localVarTransferCache = true; } + // to determine the Content-Type header const consumes: string[] = [ - 'multipart/form-data' + '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'; + } + } - const canConsumeForm = this.canConsumeForm(consumes); + let localVarPath = `/api/documents/${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: document, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } - let localVarFormParams: { append(param: string, value: any): any; }; - let localVarUseForm = false; - let localVarConvertFormParamsToString = false; - // use FormData to transmit files using content-type "multipart/form-data" - // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data - localVarUseForm = canConsumeForm; - if (localVarUseForm) { - localVarFormParams = new FormData(); - } else { - localVarFormParams = new HttpParams({encoder: this.encoder}); + /** + * Creates a Document resource. + * Creates a Document resource. + * @param documentJsonld The new Document 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 documentsPost(documentJsonld: DocumentJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public documentsPost(documentJsonld: DocumentJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public documentsPost(documentJsonld: DocumentJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public documentsPost(documentJsonld: DocumentJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (documentJsonld === null || documentJsonld === undefined) { + throw new Error('Required parameter documentJsonld was null or undefined when calling documentsPost.'); + } + + 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); } - if (file !== undefined) { - localVarFormParams = localVarFormParams.append('file', file) as any || localVarFormParams; + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); } - if (partner !== undefined) { - localVarFormParams = localVarFormParams.append('partner', partner) as any || localVarFormParams; + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; } - if (product !== undefined) { - localVarFormParams = localVarFormParams.append('product', product) as any || localVarFormParams; + + + // 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'; @@ -455,10 +516,10 @@ export class DocumentService { } let localVarPath = `/api/documents`; - return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, { context: localVarHttpContext, - body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + body: documentJsonld, responseType: responseType_, withCredentials: this.configuration.withCredentials, headers: localVarHeaders, diff --git a/matsen-tool/src/app/core/api/v1/api/documentObject.service.ts b/matsen-tool/src/app/core/api/v1/api/documentObject.service.ts new file mode 100644 index 0000000..601cd8d --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/api/documentObject.service.ts @@ -0,0 +1,440 @@ +/** + * 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 { ApiDocumentObjectsGetCollection200Response } from '../model/apiDocumentObjectsGetCollection200Response'; +// @ts-ignore +import { ApiDocumentObjectsGetCollection200Response1 } from '../model/apiDocumentObjectsGetCollection200Response1'; +// @ts-ignore +import { DocumentObjectDocumentObjectRead } from '../model/documentObjectDocumentObjectRead'; +// @ts-ignore +import { DocumentObjectJsonhalDocumentObjectRead } from '../model/documentObjectJsonhalDocumentObjectRead'; +// @ts-ignore +import { DocumentObjectJsonldDocumentObjectRead } from '../model/documentObjectJsonldDocumentObjectRead'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class DocumentObjectService { + + 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(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @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 DocumentObject resources. + * Retrieves the collection of DocumentObject 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 documentObjectsGetCollection(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 documentObjectsGetCollection(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 documentObjectsGetCollection(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 documentObjectsGetCollection(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/document_objects`; + 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 DocumentObject resource. + * Removes the DocumentObject resource. + * @param id DocumentObject 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 documentObjectsIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public documentObjectsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public documentObjectsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public documentObjectsIdDelete(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 documentObjectsIdDelete.'); + } + + 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/document_objects/${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 DocumentObject resource. + * Retrieves a DocumentObject resource. + * @param id DocumentObject 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 documentObjectsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public documentObjectsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public documentObjectsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public documentObjectsIdGet(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 documentObjectsIdGet.'); + } + + 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/document_objects/${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 + } + ); + } + + /** + * Creates a DocumentObject resource. + * Creates a DocumentObject resource. + * @param file + * @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 documentObjectsPost(file?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public documentObjectsPost(file?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public documentObjectsPost(file?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public documentObjectsPost(file?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + + 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[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (file !== undefined) { + localVarFormParams = localVarFormParams.append('file', file) as any || localVarFormParams; + } + + 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/document_objects`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + 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/mediaObject.service.ts b/matsen-tool/src/app/core/api/v1/api/mediaObject.service.ts new file mode 100644 index 0000000..9077181 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/api/mediaObject.service.ts @@ -0,0 +1,440 @@ +/** + * 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 { ApiMediaObjectsGetCollection200Response } from '../model/apiMediaObjectsGetCollection200Response'; +// @ts-ignore +import { ApiMediaObjectsGetCollection200Response1 } from '../model/apiMediaObjectsGetCollection200Response1'; +// @ts-ignore +import { MediaObjectJsonhalMediaObjectRead } from '../model/mediaObjectJsonhalMediaObjectRead'; +// @ts-ignore +import { MediaObjectJsonldMediaObjectRead } from '../model/mediaObjectJsonldMediaObjectRead'; +// @ts-ignore +import { MediaObjectMediaObjectRead } from '../model/mediaObjectMediaObjectRead'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class MediaObjectService { + + 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(); + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + // @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 MediaObject resources. + * Retrieves the collection of MediaObject 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 mediaObjectsGetCollection(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 mediaObjectsGetCollection(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 mediaObjectsGetCollection(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 mediaObjectsGetCollection(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/media_objects`; + 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 MediaObject resource. + * Removes the MediaObject resource. + * @param id MediaObject 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 mediaObjectsIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public mediaObjectsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public mediaObjectsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public mediaObjectsIdDelete(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 mediaObjectsIdDelete.'); + } + + 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/media_objects/${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 MediaObject resource. + * Retrieves a MediaObject resource. + * @param id MediaObject 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 mediaObjectsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public mediaObjectsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public mediaObjectsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public mediaObjectsIdGet(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 mediaObjectsIdGet.'); + } + + 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/media_objects/${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 + } + ); + } + + /** + * Creates a MediaObject resource. + * Creates a MediaObject resource. + * @param file + * @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 mediaObjectsPost(file?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public mediaObjectsPost(file?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public mediaObjectsPost(file?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public mediaObjectsPost(file?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + + 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[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (file !== undefined) { + localVarFormParams = localVarFormParams.append('file', file) as any || localVarFormParams; + } + + 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/media_objects`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + 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/partner.service.ts b/matsen-tool/src/app/core/api/v1/api/partner.service.ts index a406c2e..32eaaca 100644 --- a/matsen-tool/src/app/core/api/v1/api/partner.service.ts +++ b/matsen-tool/src/app/core/api/v1/api/partner.service.ts @@ -106,16 +106,17 @@ export class PartnerService { * @param itemsPerPage The number of items per page * @param type * @param type2 + * @param name * @param orderName * @param orderCity * @param orderWebsite * @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 partnersGetCollection(page?: number, itemsPerPage?: number, type?: string, type2?: Array, orderName?: 'asc' | 'desc', orderCity?: 'asc' | 'desc', orderWebsite?: 'asc' | 'desc', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; - public partnersGetCollection(page?: number, itemsPerPage?: number, type?: string, type2?: Array, orderName?: 'asc' | 'desc', orderCity?: 'asc' | 'desc', orderWebsite?: 'asc' | 'desc', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public partnersGetCollection(page?: number, itemsPerPage?: number, type?: string, type2?: Array, orderName?: 'asc' | 'desc', orderCity?: 'asc' | 'desc', orderWebsite?: 'asc' | 'desc', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public partnersGetCollection(page?: number, itemsPerPage?: number, type?: string, type2?: Array, orderName?: 'asc' | 'desc', orderCity?: 'asc' | 'desc', orderWebsite?: 'asc' | 'desc', observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + public partnersGetCollection(page?: number, itemsPerPage?: number, type?: string, type2?: Array, name?: string, orderName?: 'asc' | 'desc', orderCity?: 'asc' | 'desc', orderWebsite?: 'asc' | 'desc', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public partnersGetCollection(page?: number, itemsPerPage?: number, type?: string, type2?: Array, name?: string, orderName?: 'asc' | 'desc', orderCity?: 'asc' | 'desc', orderWebsite?: 'asc' | 'desc', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public partnersGetCollection(page?: number, itemsPerPage?: number, type?: string, type2?: Array, name?: string, orderName?: 'asc' | 'desc', orderCity?: 'asc' | 'desc', orderWebsite?: 'asc' | 'desc', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public partnersGetCollection(page?: number, itemsPerPage?: number, type?: string, type2?: Array, name?: string, orderName?: 'asc' | 'desc', orderCity?: 'asc' | 'desc', orderWebsite?: 'asc' | 'desc', 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) { @@ -136,6 +137,10 @@ export class PartnerService { element, 'type[]'); }) } + if (name !== undefined && name !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + name, 'name'); + } if (orderName !== undefined && orderName !== null) { localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderName, 'order[name]'); diff --git a/matsen-tool/src/app/core/api/v1/api/partnerFollow.service.ts b/matsen-tool/src/app/core/api/v1/api/partnerFollow.service.ts index 70d596a..509beab 100644 --- a/matsen-tool/src/app/core/api/v1/api/partnerFollow.service.ts +++ b/matsen-tool/src/app/core/api/v1/api/partnerFollow.service.ts @@ -106,13 +106,15 @@ export class PartnerFollowService { * @param itemsPerPage The number of items per page * @param partner * @param partner2 + * @param user + * @param user2 * @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 partnerFollowsGetCollection(page?: number, itemsPerPage?: number, 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 partnerFollowsGetCollection(page?: number, itemsPerPage?: number, 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 partnerFollowsGetCollection(page?: number, itemsPerPage?: number, 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 partnerFollowsGetCollection(page?: number, itemsPerPage?: number, 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 { + public partnerFollowsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array, user?: string, user2?: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public partnerFollowsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array, user?: string, user2?: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public partnerFollowsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array, user?: string, user2?: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public partnerFollowsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array, user?: string, user2?: 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) { @@ -133,6 +135,16 @@ export class PartnerFollowService { element, 'partner[]'); }) } + if (user !== undefined && user !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + user, 'user'); + } + if (user2) { + user2.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'user[]'); + }) + } let localVarHeaders = this.defaultHeaders; diff --git a/matsen-tool/src/app/core/api/v1/api/product.service.ts b/matsen-tool/src/app/core/api/v1/api/product.service.ts index bb29703..c560944 100644 --- a/matsen-tool/src/app/core/api/v1/api/product.service.ts +++ b/matsen-tool/src/app/core/api/v1/api/product.service.ts @@ -104,14 +104,15 @@ export class ProductService { * Retrieves the collection of Product resources. * @param page The collection page number * @param itemsPerPage The number of items per page + * @param name * @param orderName * @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 productsGetCollection(page?: number, itemsPerPage?: number, orderName?: 'asc' | 'desc', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; - public productsGetCollection(page?: number, itemsPerPage?: number, orderName?: 'asc' | 'desc', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public productsGetCollection(page?: number, itemsPerPage?: number, orderName?: 'asc' | 'desc', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public productsGetCollection(page?: number, itemsPerPage?: number, orderName?: 'asc' | 'desc', observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + public productsGetCollection(page?: number, itemsPerPage?: number, name?: string, orderName?: 'asc' | 'desc', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public productsGetCollection(page?: number, itemsPerPage?: number, name?: string, orderName?: 'asc' | 'desc', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public productsGetCollection(page?: number, itemsPerPage?: number, name?: string, orderName?: 'asc' | 'desc', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public productsGetCollection(page?: number, itemsPerPage?: number, name?: string, orderName?: 'asc' | 'desc', 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) { @@ -122,6 +123,10 @@ export class ProductService { localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, itemsPerPage, 'itemsPerPage'); } + if (name !== undefined && name !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + name, 'name'); + } if (orderName !== undefined && orderName !== null) { localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderName, 'order[name]'); diff --git a/matsen-tool/src/app/core/api/v1/api/task.service.ts b/matsen-tool/src/app/core/api/v1/api/task.service.ts index 21361ef..0baf82c 100644 --- a/matsen-tool/src/app/core/api/v1/api/task.service.ts +++ b/matsen-tool/src/app/core/api/v1/api/task.service.ts @@ -104,6 +104,8 @@ export class TaskService { * Retrieves the collection of Task resources. * @param page The collection page number * @param itemsPerPage The number of items per page + * @param assignedTo + * @param assignedTo2 * @param partner * @param partner2 * @param contact @@ -111,10 +113,10 @@ export class TaskService { * @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 tasksGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array, contact?: string, contact2?: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; - public tasksGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array, contact?: string, contact2?: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public tasksGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array, contact?: string, contact2?: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public tasksGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array, contact?: string, contact2?: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable { + public tasksGetCollection(page?: number, itemsPerPage?: number, assignedTo?: string, assignedTo2?: Array, partner?: string, partner2?: Array, contact?: string, contact2?: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable; + public tasksGetCollection(page?: number, itemsPerPage?: number, assignedTo?: string, assignedTo2?: Array, partner?: string, partner2?: Array, contact?: string, contact2?: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tasksGetCollection(page?: number, itemsPerPage?: number, assignedTo?: string, assignedTo2?: Array, partner?: string, partner2?: Array, contact?: string, contact2?: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tasksGetCollection(page?: number, itemsPerPage?: number, assignedTo?: string, assignedTo2?: Array, partner?: string, partner2?: Array, contact?: string, contact2?: 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) { @@ -125,6 +127,16 @@ export class TaskService { localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, itemsPerPage, 'itemsPerPage'); } + if (assignedTo !== undefined && assignedTo !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + assignedTo, 'assignedTo'); + } + if (assignedTo2) { + assignedTo2.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'assignedTo[]'); + }) + } if (partner !== undefined && partner !== null) { localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, partner, 'partner'); diff --git a/matsen-tool/src/app/core/api/v1/model/apiDocumentObjectsGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiDocumentObjectsGetCollection200Response.ts new file mode 100644 index 0000000..24ac17f --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiDocumentObjectsGetCollection200Response.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 { DocumentObjectJsonldDocumentObjectRead } from './documentObjectJsonldDocumentObjectRead'; +import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; +import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; + + +export interface ApiDocumentObjectsGetCollection200Response { + 'hydra:member': Array; + 'hydra:totalItems'?: number; + 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; + 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiDocumentObjectsGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiDocumentObjectsGetCollection200Response1.ts new file mode 100644 index 0000000..ade7d57 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiDocumentObjectsGetCollection200Response1.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 { DocumentObjectJsonhalDocumentObjectRead } from './documentObjectJsonhalDocumentObjectRead'; + + +export interface ApiDocumentObjectsGetCollection200Response1 { + _embedded: Array; + totalItems?: number; + itemsPerPage?: number; + _links: ApiCommentsGetCollection200Response1Links; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiDocumentsGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiDocumentsGetCollection200Response.ts index a06c1df..ef8025d 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiDocumentsGetCollection200Response.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiDocumentsGetCollection200Response.ts @@ -9,13 +9,13 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import { DocumentJsonld } from './documentJsonld'; import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch'; import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView'; -import { DocumentJsonldDocumentObjectRead } from './documentJsonldDocumentObjectRead'; export interface ApiDocumentsGetCollection200Response { - 'hydra:member': Array; + 'hydra:member': Array; 'hydra:totalItems'?: number; 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; diff --git a/matsen-tool/src/app/core/api/v1/model/apiDocumentsGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiDocumentsGetCollection200Response1.ts index 3148d7f..39d1c9c 100644 --- a/matsen-tool/src/app/core/api/v1/model/apiDocumentsGetCollection200Response1.ts +++ b/matsen-tool/src/app/core/api/v1/model/apiDocumentsGetCollection200Response1.ts @@ -9,12 +9,12 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { DocumentJsonhalDocumentObjectRead } from './documentJsonhalDocumentObjectRead'; +import { DocumentJsonhal } from './documentJsonhal'; import { ApiCommentsGetCollection200Response1Links } from './apiCommentsGetCollection200Response1Links'; export interface ApiDocumentsGetCollection200Response1 { - _embedded: Array; + _embedded: Array; totalItems?: number; itemsPerPage?: number; _links: ApiCommentsGetCollection200Response1Links; diff --git a/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts b/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts new file mode 100644 index 0000000..0597239 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.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 { MediaObjectJsonldMediaObjectRead } from './mediaObjectJsonldMediaObjectRead'; + + +export interface ApiMediaObjectsGetCollection200Response { + 'hydra:member': Array; + 'hydra:totalItems'?: number; + 'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView; + 'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response1.ts b/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response1.ts new file mode 100644 index 0000000..3b77973 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response1.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 { MediaObjectJsonhalMediaObjectRead } from './mediaObjectJsonhalMediaObjectRead'; +import { ApiCommentsGetCollection200Response1Links } from './apiCommentsGetCollection200Response1Links'; + + +export interface ApiMediaObjectsGetCollection200Response1 { + _embedded: Array; + totalItems?: number; + itemsPerPage?: number; + _links: ApiCommentsGetCollection200Response1Links; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/document.ts b/matsen-tool/src/app/core/api/v1/model/document.ts new file mode 100644 index 0000000..05c78ef --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/document.ts @@ -0,0 +1,30 @@ +/** + * 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 Document { + readonly createdBy?: string | null; + readonly createdByName?: string | null; + name: string | null; + description?: string | null; + partner?: string | null; + readonly partnerName?: string | null; + product?: string | null; + readonly productName?: string | null; + documentObject: string | null; + readonly documentUrl?: string | null; + readonly createdAt?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/documentJsonhal.ts b/matsen-tool/src/app/core/api/v1/model/documentJsonhal.ts new file mode 100644 index 0000000..b377b51 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/documentJsonhal.ts @@ -0,0 +1,32 @@ +/** + * 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 DocumentJsonhal { + _links?: CommentJsonhalLinks; + readonly createdBy?: string | null; + readonly createdByName?: string | null; + name: string | null; + description?: string | null; + partner?: string | null; + readonly partnerName?: string | null; + product?: string | null; + readonly productName?: string | null; + documentObject: string | null; + readonly documentUrl?: string | null; + readonly createdAt?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/documentJsonld.ts b/matsen-tool/src/app/core/api/v1/model/documentJsonld.ts new file mode 100644 index 0000000..5989504 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/documentJsonld.ts @@ -0,0 +1,34 @@ +/** + * 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 DocumentJsonld { + context?: CommentJsonldContext; + readonly id?: string; + readonly type?: string; + readonly createdBy?: string | null; + readonly createdByName?: string | null; + name: string | null; + description?: string | null; + partner?: string | null; + readonly partnerName?: string | null; + product?: string | null; + readonly productName?: string | null; + documentObject: string | null; + readonly documentUrl?: string | null; + readonly createdAt?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/documentObjectDocumentObjectRead.ts b/matsen-tool/src/app/core/api/v1/model/documentObjectDocumentObjectRead.ts new file mode 100644 index 0000000..4701fe2 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/documentObjectDocumentObjectRead.ts @@ -0,0 +1,20 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface DocumentObjectDocumentObjectRead { + contentUrl?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/documentObjectJsonhalDocumentObjectRead.ts b/matsen-tool/src/app/core/api/v1/model/documentObjectJsonhalDocumentObjectRead.ts new file mode 100644 index 0000000..09a9354 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/documentObjectJsonhalDocumentObjectRead.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 { CommentJsonhalLinks } from './commentJsonhalLinks'; + + +/** + * + */ +export interface DocumentObjectJsonhalDocumentObjectRead { + _links?: CommentJsonhalLinks; + contentUrl?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/documentObjectJsonldDocumentObjectRead.ts b/matsen-tool/src/app/core/api/v1/model/documentObjectJsonldDocumentObjectRead.ts new file mode 100644 index 0000000..9ba7bcb --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/documentObjectJsonldDocumentObjectRead.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. + */ +import { CommentJsonldContext } from './commentJsonldContext'; + + +/** + * + */ +export interface DocumentObjectJsonldDocumentObjectRead { + context?: CommentJsonldContext; + readonly id?: string; + readonly type?: string; + contentUrl?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/mediaObjectJsonhalMediaObjectRead.ts b/matsen-tool/src/app/core/api/v1/model/mediaObjectJsonhalMediaObjectRead.ts new file mode 100644 index 0000000..8224c33 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/mediaObjectJsonhalMediaObjectRead.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 { CommentJsonhalLinks } from './commentJsonhalLinks'; + + +/** + * + */ +export interface MediaObjectJsonhalMediaObjectRead { + _links?: CommentJsonhalLinks; + contentUrl?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/mediaObjectJsonldMediaObjectRead.ts b/matsen-tool/src/app/core/api/v1/model/mediaObjectJsonldMediaObjectRead.ts new file mode 100644 index 0000000..66aa1ca --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/mediaObjectJsonldMediaObjectRead.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. + */ +import { CommentJsonldContext } from './commentJsonldContext'; + + +/** + * + */ +export interface MediaObjectJsonldMediaObjectRead { + context?: CommentJsonldContext; + readonly id?: string; + readonly type?: string; + contentUrl?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/mediaObjectMediaObjectRead.ts b/matsen-tool/src/app/core/api/v1/model/mediaObjectMediaObjectRead.ts new file mode 100644 index 0000000..90435c1 --- /dev/null +++ b/matsen-tool/src/app/core/api/v1/model/mediaObjectMediaObjectRead.ts @@ -0,0 +1,20 @@ +/** + * Matsen API Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface MediaObjectMediaObjectRead { + contentUrl?: string | null; +} + diff --git a/matsen-tool/src/app/core/api/v1/model/models.ts b/matsen-tool/src/app/core/api/v1/model/models.ts index 48e4074..171a12e 100644 --- a/matsen-tool/src/app/core/api/v1/model/models.ts +++ b/matsen-tool/src/app/core/api/v1/model/models.ts @@ -7,10 +7,12 @@ export * from './apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner export * from './apiCommentsGetCollection200ResponseHydraView'; export * from './apiContactsGetCollection200Response'; export * from './apiContactsGetCollection200Response1'; +export * from './apiDocumentObjectsGetCollection200Response'; +export * from './apiDocumentObjectsGetCollection200Response1'; export * from './apiDocumentsGetCollection200Response'; export * from './apiDocumentsGetCollection200Response1'; -export * from './apiMediasGetCollection200Response'; -export * from './apiMediasGetCollection200Response1'; +export * from './apiMediaObjectsGetCollection200Response'; +export * from './apiMediaObjectsGetCollection200Response1'; export * from './apiPartnerFollowsGetCollection200Response'; export * from './apiPartnerFollowsGetCollection200Response1'; export * from './apiPartnersGetCollection200Response'; @@ -38,14 +40,17 @@ export * from './commentJsonldContextOneOf'; export * from './contact'; export * from './contactJsonhal'; export * from './contactJsonld'; -export * from './documentDocumentObjectRead'; -export * from './documentJsonhalDocumentObjectRead'; -export * from './documentJsonldDocumentObjectRead'; +export * from './document'; +export * from './documentJsonhal'; +export * from './documentJsonld'; +export * from './documentObjectDocumentObjectRead'; +export * from './documentObjectJsonhalDocumentObjectRead'; +export * from './documentObjectJsonldDocumentObjectRead'; export * from './loginCheckPost200Response'; export * from './loginCheckPostRequest'; -export * from './mediaJsonhalMediaObjectRead'; -export * from './mediaJsonldMediaObjectRead'; -export * from './mediaMediaObjectRead'; +export * from './mediaObjectJsonhalMediaObjectRead'; +export * from './mediaObjectJsonldMediaObjectRead'; +export * from './mediaObjectMediaObjectRead'; export * from './partner'; export * from './partnerFollow'; export * from './partnerFollowJsonhal'; diff --git a/matsen-tool/src/app/documents/documents-detail/documents-detail.component.html b/matsen-tool/src/app/documents/documents-detail/documents-detail.component.html new file mode 100644 index 0000000..58bdd76 --- /dev/null +++ b/matsen-tool/src/app/documents/documents-detail/documents-detail.component.html @@ -0,0 +1 @@ +

documents-detail works!

diff --git a/matsen-tool/src/app/documents/documents-detail/documents-detail.component.scss b/matsen-tool/src/app/documents/documents-detail/documents-detail.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/matsen-tool/src/app/documents/documents-detail/documents-detail.component.spec.ts b/matsen-tool/src/app/documents/documents-detail/documents-detail.component.spec.ts new file mode 100644 index 0000000..58022de --- /dev/null +++ b/matsen-tool/src/app/documents/documents-detail/documents-detail.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { DocumentsDetailComponent } from './documents-detail.component'; + +describe('DocumentsDetailComponent', () => { + let component: DocumentsDetailComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [DocumentsDetailComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(DocumentsDetailComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/matsen-tool/src/app/documents/documents-detail/documents-detail.component.ts b/matsen-tool/src/app/documents/documents-detail/documents-detail.component.ts new file mode 100644 index 0000000..736bb5a --- /dev/null +++ b/matsen-tool/src/app/documents/documents-detail/documents-detail.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-documents-detail', + templateUrl: './documents-detail.component.html', + styleUrl: './documents-detail.component.scss' +}) +export class DocumentsDetailComponent { + +} diff --git a/matsen-tool/src/app/documents/documents.component.html b/matsen-tool/src/app/documents/documents.component.html index 96cea3d..1340a4e 100644 --- a/matsen-tool/src/app/documents/documents.component.html +++ b/matsen-tool/src/app/documents/documents.component.html @@ -1,7 +1,7 @@

{{ 'basic.documents' | translate }}

- +
@@ -16,26 +16,71 @@ - - - - + + + + + - - - + + + + + + + + + + - + + + + + + + + + + diff --git a/matsen-tool/src/app/documents/documents.component.ts b/matsen-tool/src/app/documents/documents.component.ts index 4f9dd95..976197e 100644 --- a/matsen-tool/src/app/documents/documents.component.ts +++ b/matsen-tool/src/app/documents/documents.component.ts @@ -2,22 +2,23 @@ import {ChangeDetectorRef, Component, ViewChild} from '@angular/core'; import {MatSort, MatSortModule, Sort} from "@angular/material/sort"; import {MatPaginator, MatPaginatorIntl, MatPaginatorModule, PageEvent} from "@angular/material/paginator"; import {Subscription} from "rxjs"; -import {DocumentJsonldDocumentObjectRead, DocumentService, PartnerJsonld, ProductJsonld} from "@app/core/api/v1"; +import {DocumentJsonld, DocumentService, ProductJsonld} from "@app/core/api/v1"; import {Router, RouterLink, RouterLinkActive} from "@angular/router"; import {MatTableDataSource, MatTableModule} from "@angular/material/table"; import {OrderFilter} from "@app/_models/orderFilter"; -import {NgIf} from "@angular/common"; +import {DatePipe, NgIf} from "@angular/common"; import {NgbModal, NgbModalOptions} from "@ng-bootstrap/ng-bootstrap"; import {NewDocumentComponent} from "@app/documents/new-document/new-document.component"; import {TranslateModule} from "@ngx-translate/core"; import {ModalStatus} from "@app/_helpers/modal.states"; +import {NewCommentComponent} from "@app/postings/new-comment/new-comment.component"; @Component({ selector: 'app-documents', templateUrl: './documents.component.html', styleUrl: './documents.component.scss', standalone: true, - imports: [MatTableModule, MatSortModule, MatPaginatorModule, RouterLink, RouterLinkActive, NgIf, TranslateModule], + imports: [MatTableModule, MatSortModule, MatPaginatorModule, RouterLink, RouterLinkActive, NgIf, TranslateModule, DatePipe], }) export class DocumentsComponent { @ViewChild(MatSort) sort; @@ -26,7 +27,7 @@ export class DocumentsComponent { protected displayedColumns: string[]; protected documentsSub: Subscription; - protected documents: Array; + protected documents: Array; protected documentsDataSource; protected documentsLength: number; protected documentsPageEvent: PageEvent; @@ -43,12 +44,12 @@ export class DocumentsComponent { private documentService: DocumentService ) { this.sort = new MatSort(); - this.displayedColumns = ['pos', 'name', 'type', 'date']; + this.displayedColumns = ['pos', 'name', 'description', 'download', 'partnerName', 'productName', 'createdAt', 'createdByName', 'edit']; this.documentsSub = new Subscription(); this.documents = []; this.documentsPaginator = new MatPaginator(new MatPaginatorIntl(), ChangeDetectorRef.prototype); - this.documentsDataSource = new MatTableDataSource(this.documents); + this.documentsDataSource = new MatTableDataSource(this.documents); this.documentsLength = 0; this.documentsPageEvent = new PageEvent(); this.documentsPageSize = 10; @@ -71,7 +72,8 @@ export class DocumentsComponent { ).subscribe( data => { this.documents = data["hydra:member"]; - this.documentsDataSource = new MatTableDataSource(this.documents); + console.log(this.documents); + this.documentsDataSource = new MatTableDataSource(this.documents); this.documentsLength = Number(data["hydra:totalItems"]); this.documentsPaginator.length = this.documentsLength; } @@ -115,18 +117,13 @@ export class DocumentsComponent { this.getDocumentsData(); } - navigateToDocumentFile(element: any) { - // const partner: PartnerJsonld = element as PartnerJsonld; - // console.log(partner.type); - // console.log(ApiConverter.extractId(partner.id)); - // this.router.navigate(['/documents', ApiConverter.extractId(partner.id)]); + navigateToDocumentFile(element: DocumentJsonld) { + window.open(element.documentUrl?.toString(), '_blank'); } openModalNewDocument() { const modalRefDocument = this.modalService.open(NewDocumentComponent, this.modalOptions); - // TODO: Warum muss ich einen leeren String übergeben, damit es funktioniert? - let document: ProductJsonld = {} as ProductJsonld; - document.name = ""; + let document: DocumentJsonld = {} as DocumentJsonld; modalRefDocument.componentInstance.document = document; modalRefDocument.componentInstance.submit.subscribe((modalStatus: ModalStatus) => { if (modalStatus === ModalStatus.Submitted) { @@ -135,4 +132,16 @@ export class DocumentsComponent { } }); } + + openModalEditDocument(document: DocumentJsonld) { + const modalRefDocument = this.modalService.open(NewDocumentComponent, this.modalOptions); + modalRefDocument.componentInstance.document = document; + console.log(document); + modalRefDocument.componentInstance.submit.subscribe((modalStatus: ModalStatus) => { + if (modalStatus === ModalStatus.Submitted) { + modalRefDocument.dismiss(); + this.getDocumentsData(); + } + }); + } } diff --git a/matsen-tool/src/app/documents/new-document/new-document.component.html b/matsen-tool/src/app/documents/new-document/new-document.component.html index fb48dd0..1d52fd0 100644 --- a/matsen-tool/src/app/documents/new-document/new-document.component.html +++ b/matsen-tool/src/app/documents/new-document/new-document.component.html @@ -1,12 +1,53 @@ -

{{'basic.new-document' | translate}}

-

{{'basic.edit-document' | translate}}

+

{{ 'basic.new-document' | translate }}

+

{{ 'basic.edit-document' | translate }}

- - + +
- +
+ + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + +
+ +
+
+

{{ 'system.delete-file' | translate }}

+
+
+ 1 - selectedFile:{{selectedFile === null}}
+ 2 - documentForm.invalid:{{documentForm.invalid}}
+ 3 - document.id:{{document.id !== undefined}}
+ 4 - documentObject:{{documentForm.get('documentObject')?.value}}
+ + +
diff --git a/matsen-tool/src/app/documents/new-document/new-document.component.ts b/matsen-tool/src/app/documents/new-document/new-document.component.ts index 931412d..9d60d23 100644 --- a/matsen-tool/src/app/documents/new-document/new-document.component.ts +++ b/matsen-tool/src/app/documents/new-document/new-document.component.ts @@ -1,18 +1,16 @@ import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import { - DocumentJsonldDocumentObjectRead, - DocumentService, - MediaService, - ProductJsonld, - ProductService + DocumentJsonld, DocumentObjectService, + DocumentService, MediaObjectService, PartnerJsonld, PartnerService, ProductService } from "@app/core/api/v1"; import {ModalStatus} from "@app/_helpers/modal.states"; import {FormGroup} from "@angular/forms"; -import {Subscription} from "rxjs"; +import {debounceTime, distinctUntilChanged, Observable, OperatorFunction, Subscription, switchMap} from "rxjs"; import {TranslateService} from "@ngx-translate/core"; import {FormGroupInitializer} from "@app/_helpers/formgroup.initializer"; +import {documentForm} from "@app/_forms/apiForms"; import {ApiConverter} from "@app/_helpers/api.converter"; -import {documentDocumentObjectReadForm} from "@app/_forms/apiForms"; +import {filter, map} from "rxjs/operators"; @Component({ selector: 'app-new-document', @@ -20,51 +18,137 @@ import {documentDocumentObjectReadForm} from "@app/_forms/apiForms"; styleUrl: './new-document.component.scss' }) export class NewDocumentComponent implements OnInit { - @Input() public document!: DocumentJsonldDocumentObjectRead; + @Input() public document!: DocumentJsonld; @Output() public submit: EventEmitter = new EventEmitter(); protected documentForm: FormGroup; protected documentSub: Subscription; - protected selectedImage: File | null; + protected selectedFile: File | null; protected mediaSub: Subscription; + protected formatter = (apiData: any) => apiData.name; + + protected searchPartners: OperatorFunction = (text$: Observable) => + text$.pipe( + debounceTime(200), + distinctUntilChanged(), + filter((term) => term.length >= 2), + switchMap((term) => this.fetchPartners(term)), + map((partners) => partners.slice(0, 10)), + ); + + protected searchProducts: OperatorFunction = (text$: Observable) => + text$.pipe( + debounceTime(200), + distinctUntilChanged(), + filter((term) => term.length >= 2), + switchMap((term) => this.fetchProducts(term)), + map((products) => products.slice(0, 10)), + ); + constructor( private documentService: DocumentService, - private mediaService: MediaService, - private translateService: TranslateService + private documentObjectService: DocumentObjectService, + private translateService: TranslateService, + private partnerService: PartnerService, + private productService: ProductService ) { - this.documentForm = documentDocumentObjectReadForm; + this.documentForm = documentForm; this.documentSub = new Subscription(); - this.selectedImage = null; + this.selectedFile = null; this.mediaSub = new Subscription(); } ngOnInit(): void { this.documentForm = FormGroupInitializer.initFormGroup(this.documentForm, this.document); + console.log(this.document); + console.log(this.documentForm); + if (this.document.documentUrl === undefined) { + this.documentForm.patchValue({"documentObject": "-"}); + console.log(this.documentForm); + } + } + + protected fetchPartners(term: string): Observable<{ id: any; name: any }[]> { + return this.partnerService.partnersGetCollection(1, 50, undefined, undefined, term).pipe( + map((response) => response['hydra:member'].map(partner => ({ id: partner.id, name: partner.name }))), + ); + } + + protected fetchProducts(term: string): Observable<{ id: any; name: any }[]> { + return this.productService.productsGetCollection(1, 50, term).pipe( + map((response) => response['hydra:member'].map(product => ({ id: product.id, name: product.name }))), + ); + } + + protected onAssignedToSelectPartner(selectedItem: any): void { + this.documentForm.get('partner')?.setValue(selectedItem.item.id); + } + + protected onAssignedToSelectProduct(selectedItem: any): void { + this.documentForm.get('product')?.setValue(selectedItem.item.id); } onSubmit() { - // if (this.documentForm.valid) { - // if (this.document.id === null || this.document.id === undefined) { - // // Create new product - // this.documentSub = this.documentService.documentsPost( - // this.documentForm.value as DocumentJsonldDocumentObjectRead - // ).subscribe( - // data => { - // this.documentForm.reset(); - // this.submit.emit(ModalStatus.Submitted); - // } - // ); - // } - // } + if (this.selectedFile !== null) { + this.mediaSub = this.documentObjectService.documentObjectsPost( + this.selectedFile + ).subscribe( + data => { + this.documentForm.patchValue({"documentObject": data.id}); + this.submitForm(); + } + ); + } + } + + submitForm() { + if (this.documentForm.valid) { + if (this.document.id === null || this.document.id === undefined) { + // Create new product + this.documentSub = this.documentService.documentsPost( + this.documentForm.value as DocumentJsonld + ).subscribe( + data => { + this.documentForm.reset(); + this.submit.emit(ModalStatus.Submitted); + } + ); + } else { + // Edit contact + this.documentSub = this.documentService.documentsIdPatch( + ApiConverter.extractId(this.document.id), + this.documentForm.value as DocumentJsonld + ).subscribe( + data => { + this.documentForm.reset(); + this.submit.emit(ModalStatus.Submitted); + } + ); + } + } } onFileSelected(event: any) { + console.log(this.documentForm); const file: File = event.target.files[0]; if (file) { - this.selectedImage = file; + this.selectedFile = file; + console.log(this.selectedFile); + } + } + + onDeleteFile() { + let confirmMessage = ""; + this.translateService.get('system.confirm-delete-file').subscribe((translation: string) => { + confirmMessage = translation; + }); + const userConfirmed = window.confirm(confirmMessage); + if (userConfirmed) { + this.documentForm.patchValue({"documentObject": null}); + this.documentForm.patchValue({"documentUrl": null}); } } } diff --git a/matsen-tool/src/app/home/home.component.html b/matsen-tool/src/app/home/home.component.html index 9bbd41a..23f984d 100644 --- a/matsen-tool/src/app/home/home.component.html +++ b/matsen-tool/src/app/home/home.component.html @@ -120,4 +120,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/matsen-tool/src/app/home/home.component.ts b/matsen-tool/src/app/home/home.component.ts index 6773858..051b005 100644 --- a/matsen-tool/src/app/home/home.component.ts +++ b/matsen-tool/src/app/home/home.component.ts @@ -107,8 +107,6 @@ export class HomeComponent implements OnInit, AfterViewInit { this.tasksSub = this.taskService.tasksGetCollection( this.tasksPageIndex + 1, this.tasksPageSize, - "", - [], this.user?.id ).subscribe( data => { diff --git a/matsen-tool/src/app/partners/new-partner/new-partner.component.html b/matsen-tool/src/app/partners/new-partner/new-partner.component.html index cfc692f..6d2043c 100644 --- a/matsen-tool/src/app/partners/new-partner/new-partner.component.html +++ b/matsen-tool/src/app/partners/new-partner/new-partner.component.html @@ -1,58 +1,59 @@ -

{{'basic.new' | translate}} {{ partnerNameOne }}

-

{{'basic.edit-before' | translate}} {{ partnerNameOne }} {{'basic.edit-after' | translate}}

+

{{ 'basic.new' | translate }} {{ partnerNameOne }}

+

{{ 'basic.edit-before' | translate }} {{ partnerNameOne }} {{ 'basic.edit-after' | translate }}

- - + +
- {{'form.name' | translate}} {{'form.mandatory' | translate}}. + {{ 'form.name' | translate }} {{ 'form.mandatory' | translate }}.
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
-
+
- -

{{'system.delete-image' | translate}}

+ +

{{ 'system.delete-image' | translate }}

- +
diff --git a/matsen-tool/src/app/partners/new-partner/new-partner.component.ts b/matsen-tool/src/app/partners/new-partner/new-partner.component.ts index ec44e53..14d17bd 100644 --- a/matsen-tool/src/app/partners/new-partner/new-partner.component.ts +++ b/matsen-tool/src/app/partners/new-partner/new-partner.component.ts @@ -1,6 +1,6 @@ import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {partnerForm} from "@app/_forms/apiForms"; -import {MediaService, PartnerJsonld, PartnerService} from "@app/core/api/v1"; +import {MediaObjectService, PartnerJsonld, PartnerService} from "@app/core/api/v1"; import {ModalStatus} from "@app/_helpers/modal.states"; import {FormGroup} from "@angular/forms"; import {Subscription} from "rxjs"; @@ -18,15 +18,16 @@ export class NewPartnerComponent implements OnInit { @Output() public submit: EventEmitter = new EventEmitter(); protected partnerForm: FormGroup; - protected selectedImage: File | null; protected partnerSub: Subscription; + + protected selectedImage: File | null; protected mediaSub: Subscription; protected partnerNameOne: string; constructor( private partnerService: PartnerService, - private mediaService: MediaService, + private mediaObjectService: MediaObjectService, private translateService: TranslateService ) { this.partnerForm = partnerForm; @@ -40,7 +41,7 @@ export class NewPartnerComponent implements OnInit { ngOnInit(): void { this.partnerForm = FormGroupInitializer.initFormGroup(this.partnerForm, this.partner); - this.translateService.get('basic.' + this.partner.type + 'One').subscribe((translation: string) => { + this.translateService.get('basic.' + this.partner.partnerType + 'One').subscribe((translation: string) => { this.partnerNameOne = translation; }); } @@ -48,7 +49,7 @@ export class NewPartnerComponent implements OnInit { // On submit form: Check if image is set onSubmit() { if (this.selectedImage !== null) { - this.mediaSub = this.mediaService.mediasPost( + this.mediaSub = this.mediaObjectService.mediaObjectsPost( this.selectedImage ).subscribe( data => { diff --git a/matsen-tool/src/app/partners/partners-detail/partners-detail.component.html b/matsen-tool/src/app/partners/partners-detail/partners-detail.component.html index 244b880..71aa81b 100644 --- a/matsen-tool/src/app/partners/partners-detail/partners-detail.component.html +++ b/matsen-tool/src/app/partners/partners-detail/partners-detail.component.html @@ -31,9 +31,9 @@ height="94" alt="{{partner.name}}" title="{{partner.name}}"/>
; @@ -90,12 +89,11 @@ export class PartnersDetailComponent implements OnInit, AfterViewInit { private taskService: TaskService ) { this.id = ""; - this.userFollows = false; this.partnerDetailSub = new Subscription(); this.partner = {} as PartnerJsonld; this.partnerFollowSub = new Subscription(); - this.partnerFollow = {} as PartnerFollowJsonld; + this.partnerFollow = null; this.user = this.accountService.userValue; @@ -188,7 +186,8 @@ export class PartnersDetailComponent implements OnInit, AfterViewInit { this.tasksSub = this.taskService.tasksGetCollection( this.tasksPageIndex + 1, this.tasksPageSize, - // TODO: User-ID muss übergeben werden können, damit man nur die Tasks bekommt, die einem User zugewiesen sind + undefined, + undefined, this.id ).subscribe( data => { @@ -366,45 +365,41 @@ export class PartnersDetailComponent implements OnInit, AfterViewInit { this.partnerFollowSub = this.partnerFollowService.partnerFollowsGetCollection( 1, 50, - this.id - // TODO: Follow für Partner auf User holen + this.id, + undefined, + this.user?.id ).subscribe( data => { - // this.partnerFollow = data; - // TODO: Einblenden! - if (this.partnerFollow === null) { - this.userFollows == false; - } else { - this.userFollows == true; + let partnerFollows = data["hydra:member"]; + if (partnerFollows.length > 0) { + this.partnerFollow = partnerFollows[0]; } + console.log(this.partnerFollow); } ); } followPartner(event: any) { - if (!this.userFollows) { + if (this.partnerFollow === null) { this.partnerFollowSub = this.partnerFollowService.partnerFollowsPost( { partner: this.partner.id } as PartnerFollowJsonld ).subscribe( data => { - console.log(data); - this.userFollows = !this.userFollows; + this.partnerFollow = data; + console.log(this.partnerFollow); } ); } else { - if (this.partnerFollow.id !== null && this.partnerFollow.id !== undefined) { - this.partnerFollowSub = this.partnerFollowService.partnerFollowsIdDelete( - ApiConverter.extractId(this.partnerFollow.id) - ).subscribe( - data => { - console.log(data); - this.userFollows = !this.userFollows; - } - ); - } + this.partnerFollowSub = this.partnerFollowService.partnerFollowsIdDelete( + ApiConverter.extractId(this.partnerFollow.id) + ).subscribe( + data => { + this.partnerFollow = null; + console.log(this.partnerFollow); + } + ); } - console.log(this.userFollows); } } diff --git a/matsen-tool/src/app/partners/partners.component.html b/matsen-tool/src/app/partners/partners.component.html index 9f78fb6..8458063 100644 --- a/matsen-tool/src/app/partners/partners.component.html +++ b/matsen-tool/src/app/partners/partners.component.html @@ -5,7 +5,7 @@ (click)="openModalNewPartner()">{{ 'basic.new' | translate }} {{ partnerNameOne }} -
+ {{ 'overview.document' | translate }} {{ element.name }} + {{ element.name }} - {{ 'overview.type' | translate }} + + + {{ 'overview.description' | translate }} + {{ element.description?.length > 70 ? element.description?.slice(0, 70) + '...' : element.description }} + + {{ 'overview.partner' | translate }} {{ element.storage }} + {{ element.partnerName }} + + + {{ 'overview.product' | translate }} + {{ element.productName }} + + {{ 'overview.download' | translate }} + Herunterladen + {{ 'overview.uploaded' | translate }} {{ element.website }} + {{ element.createdAt | date:'dd.MM.YYYY HH:mm' }} + + {{ 'overview.createdBy' | translate }} + {{ element.createdByName }} + +
@@ -13,7 +13,7 @@ {{ 'overview.number' | translate }} @@ -63,10 +63,10 @@
{{ (pageSize * pageIndex) + dataSource.filteredData.indexOf(element) + 1 }} + *matCellDef="let element">{{ (partnersPageSize * partnersPageIndex) + partnersDataSource.filteredData.indexOf(element) + 1 }}
\ No newline at end of file diff --git a/matsen-tool/src/app/partners/partners.component.ts b/matsen-tool/src/app/partners/partners.component.ts index 58f8dda..8d9862f 100644 --- a/matsen-tool/src/app/partners/partners.component.ts +++ b/matsen-tool/src/app/partners/partners.component.ts @@ -22,8 +22,8 @@ import TypeEnum = PartnerJsonld.PartnerTypeEnum; imports: [MatTableModule, MatSortModule, MatPaginatorModule, RouterLink, RouterLinkActive, NgIf, TranslateModule], }) export class PartnersComponent implements OnInit, AfterViewInit { - @ViewChild(MatSort) sort; - @ViewChild(MatPaginator) paginator: MatPaginator; + @ViewChild(MatSort) partnersSort; + @ViewChild(MatPaginator) partnersPaginator: MatPaginator; protected partnersSub: Subscription; protected partners: Array; @@ -37,11 +37,11 @@ export class PartnersComponent implements OnInit, AfterViewInit { protected partnerNameOne: string; protected displayedColumns: string[]; - protected dataSource; - protected length: number; - protected pageEvent: PageEvent; - protected pageSize: number; - protected pageIndex: number; + protected partnersDataSource; + protected partnersLength: number; + protected partnersPageEvent: PageEvent; + protected partnersPageSize: number; + protected partnersPageIndex: number; protected modalOptions: NgbModalOptions = { centered: true @@ -54,8 +54,8 @@ export class PartnersComponent implements OnInit, AfterViewInit { private modalService: NgbModal, private translateService: TranslateService ) { - this.sort = new MatSort(); - this.paginator = new MatPaginator(new MatPaginatorIntl(), ChangeDetectorRef.prototype); + this.partnersSort = new MatSort(); + this.partnersPaginator = new MatPaginator(new MatPaginatorIntl(), ChangeDetectorRef.prototype); this.partnersSub = new Subscription(); this.partners = []; @@ -65,11 +65,11 @@ export class PartnersComponent implements OnInit, AfterViewInit { this.cityOrderAsc = OrderFilter.Asc; this.websiteOrderAsc = OrderFilter.Asc; - this.dataSource = new MatTableDataSource(this.partners); - this.length = 0; - this.pageEvent = new PageEvent(); - this.pageSize = 10; - this.pageIndex = 0; + this.partnersDataSource = new MatTableDataSource(this.partners); + this.partnersLength = 0; + this.partnersPageEvent = new PageEvent(); + this.partnersPageSize = 10; + this.partnersPageIndex = 0; this.partnerName = ""; this.partnerNameOne = ""; @@ -88,25 +88,26 @@ export class PartnersComponent implements OnInit, AfterViewInit { } ngAfterViewInit() { - this.dataSource.sort = this.sort; - this.dataSource.paginator = this.paginator; + this.partnersDataSource.sort = this.partnersSort; + this.partnersDataSource.paginator = this.partnersPaginator; } getPartnersData() { this.partnersSub = this.partnerService.partnersGetCollection( - this.pageIndex + 1, - this.pageSize, + this.partnersPageIndex + 1, + this.partnersPageSize, this.dataType, undefined, + undefined, this.nameOrderAsc, this.cityOrderAsc, this.websiteOrderAsc ).subscribe( data => { this.partners = data["hydra:member"]; - this.dataSource = new MatTableDataSource(this.partners); - this.length = Number(data["hydra:totalItems"]); - this.paginator.length = this.length; + this.partnersDataSource = new MatTableDataSource(this.partners); + this.partnersLength = Number(data["hydra:totalItems"]); + this.partnersPaginator.length = this.partnersLength; } ); // switch over this.dataType (customers, etc.) @@ -115,7 +116,7 @@ export class PartnersComponent implements OnInit, AfterViewInit { /** Announce the change in sort state for assistive technology. */ onSortChange(sortState: Sort) { // Reset page index to first page - this.pageIndex = 0; + this.partnersPageIndex = 0; let order: OrderFilter; if (sortState.direction === "") { @@ -142,10 +143,10 @@ export class PartnersComponent implements OnInit, AfterViewInit { } handlePageEvent(e: PageEvent) { - this.pageEvent = e; - this.length = e.length; - this.pageIndex = e.pageIndex.valueOf(); - this.pageSize = e.pageSize.valueOf(); + this.partnersPageEvent = e; + this.partnersLength = e.length; + this.partnersPageIndex = e.pageIndex.valueOf(); + this.partnersPageSize = e.pageSize.valueOf(); this.getPartnersData(); } diff --git a/matsen-tool/src/app/products/new-product/new-product.component.html b/matsen-tool/src/app/products/new-product/new-product.component.html index dba8029..d824a8c 100644 --- a/matsen-tool/src/app/products/new-product/new-product.component.html +++ b/matsen-tool/src/app/products/new-product/new-product.component.html @@ -23,9 +23,9 @@
-
+
- +

{{'system.delete-image' | translate}}

diff --git a/matsen-tool/src/app/products/new-product/new-product.component.ts b/matsen-tool/src/app/products/new-product/new-product.component.ts index 11e0ec0..9198432 100644 --- a/matsen-tool/src/app/products/new-product/new-product.component.ts +++ b/matsen-tool/src/app/products/new-product/new-product.component.ts @@ -1,5 +1,5 @@ import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; -import {MediaService, ProductJsonld, ProductService} from "@app/core/api/v1"; +import {MediaObjectService, ProductJsonld, ProductService} from "@app/core/api/v1"; import {ModalStatus} from "@app/_helpers/modal.states"; import {FormGroup} from "@angular/forms"; import {Subscription} from "rxjs"; @@ -25,7 +25,7 @@ export class NewProductComponent implements OnInit { constructor( private productService: ProductService, - private mediaService: MediaService, + private mediaObjectService: MediaObjectService, private translateService: TranslateService ) { this.productForm = productForm; @@ -41,7 +41,7 @@ export class NewProductComponent implements OnInit { onSubmit() { if (this.selectedImage !== null) { - this.mediaSub = this.mediaService.mediasPost( + this.mediaSub = this.mediaObjectService.mediaObjectsPost( this.selectedImage ).subscribe( data => { diff --git a/matsen-tool/src/app/tasks/new-task-note/new-task-note.component.html b/matsen-tool/src/app/tasks/new-task-note/new-task-note.component.html index 3c7c23d..99eed1c 100644 --- a/matsen-tool/src/app/tasks/new-task-note/new-task-note.component.html +++ b/matsen-tool/src/app/tasks/new-task-note/new-task-note.component.html @@ -1,16 +1,17 @@ -

{{'basic.new-task-note' | translate}}

-

{{'basic.edit-task-note' | translate}}

+

{{ 'basic.new-task-note' | translate }}

+

{{ 'basic.edit-task-note' | translate }}

- - + +
- {{'form.comment' | translate}} {{'form.mandatory' | translate}}. + {{ 'form.comment' | translate }} {{ 'form.mandatory' | translate }}.
- +
diff --git a/matsen-tool/src/app/tasks/new-task/new-task.component.html b/matsen-tool/src/app/tasks/new-task/new-task.component.html index caaf19a..c7fffb8 100644 --- a/matsen-tool/src/app/tasks/new-task/new-task.component.html +++ b/matsen-tool/src/app/tasks/new-task/new-task.component.html @@ -1,64 +1,66 @@ -

{{'basic.new-task' | translate}}

-

{{'basic.edit-task' | translate}}

+

{{ 'basic.new-task' | translate }}

+

{{ 'basic.edit-task' | translate }}

- - + +
- {{'form.headline' | translate}} {{'form.mandatory' | translate}}. + {{ 'form.headline' | translate }} {{ 'form.mandatory' | translate }}.
- - + +
- {{'form.description' | translate}} {{'form.mandatory' | translate}}. + {{ 'form.description' | translate }} {{ 'form.mandatory' | translate }}.
- +
- {{'form.partner' | translate}} {{'form.mandatory' | translate}}. + {{ 'form.partner' | translate }} {{ 'form.mandatory' | translate }}.
- + - + [resultFormatter]="formatter" [value]="taskForm.get('assignedToName')?.value" [editable]="false" (selectItem)="onAssignedToSelect($event)"/> +
- {{'form.assign-to' | translate}} {{'form.mandatory' | translate}}. + {{ 'form.assign-to' | translate }} {{ 'form.mandatory' | translate }}.
- - + +
- {{'form.due-date' | translate}} {{'form.mandatory' | translate}}. + {{ 'form.due-date' | translate }} {{ 'form.mandatory' | translate }}.
- +
- {{'form.prio' | translate}} {{'form.mandatory' | translate}}. + {{ 'form.prio' | translate }} {{ 'form.mandatory' | translate }}.
- +
diff --git a/matsen-tool/src/app/tasks/new-task/new-task.component.ts b/matsen-tool/src/app/tasks/new-task/new-task.component.ts index cb08079..44a111f 100644 --- a/matsen-tool/src/app/tasks/new-task/new-task.component.ts +++ b/matsen-tool/src/app/tasks/new-task/new-task.component.ts @@ -21,6 +21,17 @@ export class NewTaskComponent implements OnInit { protected taskSub: Subscription; protected dueAtValue: string; + protected formatter = (apiData: any) => apiData.name; + + protected search: OperatorFunction = (text$: Observable) => + text$.pipe( + debounceTime(200), + distinctUntilChanged(), + filter((term) => term.length >= 2), + switchMap((term) => this.fetchUsers(term)), + map((users) => users.slice(0, 10)), + ); + constructor( private taskService: TaskService, private userService: UserService @@ -35,17 +46,6 @@ export class NewTaskComponent implements OnInit { this.taskForm = FormGroupInitializer.initFormGroup(this.taskForm, this.task); } - protected search: OperatorFunction = (text$: Observable) => - text$.pipe( - debounceTime(200), - distinctUntilChanged(), - filter((term) => term.length >= 2), - switchMap((term) => this.fetchUsers(term)), - map((users) => users.slice(0, 10)), - ); - - protected formatter = (apiData: any) => apiData.name; - protected fetchUsers(term: string): Observable<{ id: any; name: any }[]> { return this.userService.usersGetCollection(1, 50, undefined, term).pipe( map((response) => response['hydra:member'].map(user => ({ id: user.id, name: user.firstName + ' ' + user.lastName }))), diff --git a/matsen-tool/src/assets/i18n/de.json b/matsen-tool/src/assets/i18n/de.json index 47f9e7e..17049d2 100644 --- a/matsen-tool/src/assets/i18n/de.json +++ b/matsen-tool/src/assets/i18n/de.json @@ -2,7 +2,9 @@ "system": { "delete-image": "Bild löschen", - "confirm-delete-image": "Möchten Sie das Bild wirklich löschen?" + "confirm-delete-image": "Möchten Sie das Bild wirklich löschen?", + "delete-file": "Datei löschen", + "confirm-delete-file": "Möchten Sie die Datei wirklich löschen?" }, "basic": { @@ -61,7 +63,12 @@ "number-long": "Nummer", "document": "Dokument", "type": "Typ", - "uploaded": "Hochgeladen am" + "uploaded": "Hochgeladen am", + "description": "Beschreibung", + "createdBy": "Erstellt von", + "download": "Download", + "partner": "Partner", + "product": "Produkt" }, "form": { @@ -92,6 +99,7 @@ "prio-medium": "mittel", "prio-high": "hoch", "partner": "Partner", + "product": "Produkt", "send": "Abschicken" } } \ No newline at end of file