diff --git a/api/middleware.yaml b/api/middleware.yaml index 960eeb0..2aa6c75 100644 --- a/api/middleware.yaml +++ b/api/middleware.yaml @@ -210,6 +210,36 @@ paths: description: Invalid request parameters security: - ApiKey: [] + patch: + tags: + - Entities + summary: Patch Entity + description: Patch entity + operationId: patchEntities + parameters: + - name: id + in: query + description: Entity id. + required: true + schema: + type: string + format: uri + requestBody: + content: + application/json-patch+json: + schema: + type: array + description: "The entity request, containing the actual semantic data." + items: + $ref: '#/components/schemas/EntityPatchRequest' + required: true + responses: + "200": + description: Success + "412": + description: Invalid request parameters + security: + - ApiKey: [] /dataset/batch: post: tags: @@ -397,6 +427,25 @@ components: description: Whether the entity should be hidden from Linked Data and GraphQL. example: true description: A request part of a batch. + EntityPatchRequest: + type: object + properties: + op: + type: string + enum: + - ADD + - REMOVE + - REPLACE + - MOVE + - COPY + - TEST + path: + type: string + value: + type: array + description: A model containing the Structured Data. + items: + type: object AutocompleteResult: type: object properties: @@ -444,10 +493,10 @@ components: mainType: type: string description: Schema type slug - label: - type: string value: type: string + label: + type: string displayTypes: type: string AutocompleteResultList: