From f3b2432664b28bd979d1600c2200e3fe41c8e380 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 16 May 2018 22:15:14 -0700 Subject: api tweaks --- rust/fatcat-openapi2.yml | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) (limited to 'rust/fatcat-openapi2.yml') diff --git a/rust/fatcat-openapi2.yml b/rust/fatcat-openapi2.yml index b5993244..9ec1f1fb 100644 --- a/rust/fatcat-openapi2.yml +++ b/rust/fatcat-openapi2.yml @@ -143,19 +143,25 @@ definitions: type: integer editor_id: type: integer - # TODO: work_edits array, etc. ["edits"]["work"] or ["work_edits"]? - changelogentry: - type: object - required: - - index - properties: - index: - type: integer - editgroup_id: - type: integer - timestamp: + description: type: string - format: date-time + # TODO: work_edits array, etc. ["edits"]["work"] or ["work_edits"]? + changelogentries: + type: array + items: + type: object + required: + - index + - editgroup_id + - timestamp + properties: + index: + type: integer + editgroup_id: + type: integer + timestamp: + type: string + format: date-time x-entity-responses: &ENTITYRESPONSES 400: @@ -390,7 +396,7 @@ paths: 200: description: Found Merged Changes schema: - $ref: "#/definitions/changelogentry" + $ref: "#/definitions/changelogentries" 404: description: Not Found schema: @@ -423,9 +429,13 @@ paths: get: responses: 200: - description: Found Editgroup + description: Found Entity schema: $ref: "#/definitions/editgroup" + 400: + description: Bad Request + schema: + $ref: "#/definitions/error_response" 404: description: Not Found schema: -- cgit v1.2.3