From aabf089f064f7fa7ee065e78c5950ec7bc4bee18 Mon Sep 17 00:00:00 2001 From: Valentin Rigal <rigal@teklia.com> Date: Thu, 20 Jun 2019 10:17:22 +0000 Subject: [PATCH] Fix metadata field on RetrieveElement endpoints --- arkindex/schema.yml | 362 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 357 insertions(+), 5 deletions(-) diff --git a/arkindex/schema.yml b/arkindex/schema.yml index 8cad448..bb0a859 100644 --- a/arkindex/schema.yml +++ b/arkindex/schema.yml @@ -751,7 +751,7 @@ paths: - elements /api/v1/element/{id}/: get: - description: Retrieve detailed information on a single element + description: Retrieve a single element's informations and metadata operationId: RetrieveElement parameters: - description: '' @@ -781,8 +781,96 @@ paths: id: type: string metadata: + items: + properties: + dates: + items: + properties: + day: + nullable: true + type: integer + month: + nullable: true + type: integer + type: + enum: + - exact + - lower + - upper + - unknown + year: + type: integer + required: + - year + - type + type: array + entity: + properties: + id: + type: string + name: + type: string + type: + enum: + - person + - location + - subject + - organization + - misc + required: + - name + - type + type: object + id: + type: string + name: + type: string + revision: + properties: + author: + type: string + commit_url: + readOnly: true + type: string + date: + format: date-time + type: string + hash: + type: string + id: + type: string + message: + type: string + ref: + type: string + repo_id: + readOnly: true + type: string + required: + - date + - hash + - ref + - message + - author + type: object + type: + enum: + - text + - html + - date + - location + - entity + value: + type: string + required: + - type + - name + - value + - revision + - dates + - entity readOnly: true - type: string + type: array name: type: string thumbnail_url: @@ -842,8 +930,96 @@ paths: id: type: string metadata: + items: + properties: + dates: + items: + properties: + day: + nullable: true + type: integer + month: + nullable: true + type: integer + type: + enum: + - exact + - lower + - upper + - unknown + year: + type: integer + required: + - year + - type + type: array + entity: + properties: + id: + type: string + name: + type: string + type: + enum: + - person + - location + - subject + - organization + - misc + required: + - name + - type + type: object + id: + type: string + name: + type: string + revision: + properties: + author: + type: string + commit_url: + readOnly: true + type: string + date: + format: date-time + type: string + hash: + type: string + id: + type: string + message: + type: string + ref: + type: string + repo_id: + readOnly: true + type: string + required: + - date + - hash + - ref + - message + - author + type: object + type: + enum: + - text + - html + - date + - location + - entity + value: + type: string + required: + - type + - name + - value + - revision + - dates + - entity readOnly: true - type: string + type: array name: type: string thumbnail_url: @@ -904,8 +1080,96 @@ paths: id: type: string metadata: + items: + properties: + dates: + items: + properties: + day: + nullable: true + type: integer + month: + nullable: true + type: integer + type: + enum: + - exact + - lower + - upper + - unknown + year: + type: integer + required: + - year + - type + type: array + entity: + properties: + id: + type: string + name: + type: string + type: + enum: + - person + - location + - subject + - organization + - misc + required: + - name + - type + type: object + id: + type: string + name: + type: string + revision: + properties: + author: + type: string + commit_url: + readOnly: true + type: string + date: + format: date-time + type: string + hash: + type: string + id: + type: string + message: + type: string + ref: + type: string + repo_id: + readOnly: true + type: string + required: + - date + - hash + - ref + - message + - author + type: object + type: + enum: + - text + - html + - date + - location + - entity + value: + type: string + required: + - type + - name + - value + - revision + - dates + - entity readOnly: true - type: string + type: array name: type: string thumbnail_url: @@ -1941,8 +2205,96 @@ paths: id: type: string metadata: + items: + properties: + dates: + items: + properties: + day: + nullable: true + type: integer + month: + nullable: true + type: integer + type: + enum: + - exact + - lower + - upper + - unknown + year: + type: integer + required: + - year + - type + type: array + entity: + properties: + id: + type: string + name: + type: string + type: + enum: + - person + - location + - subject + - organization + - misc + required: + - name + - type + type: object + id: + type: string + name: + type: string + revision: + properties: + author: + type: string + commit_url: + readOnly: true + type: string + date: + format: date-time + type: string + hash: + type: string + id: + type: string + message: + type: string + ref: + type: string + repo_id: + readOnly: true + type: string + required: + - date + - hash + - ref + - message + - author + type: object + type: + enum: + - text + - html + - date + - location + - entity + value: + type: string + required: + - type + - name + - value + - revision + - dates + - entity readOnly: true - type: string + type: array name: type: string thumbnail_url: -- GitLab