aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-openapi2.yml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-16 22:15:14 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-16 22:15:14 -0700
commitf3b2432664b28bd979d1600c2200e3fe41c8e380 (patch)
treeab7912f972deddfb35a1686b8a1dbddd03d78d7e /rust/fatcat-openapi2.yml
parent2c9edb5c394d9fc75cf3be49a157763506e1265c (diff)
downloadfatcat-f3b2432664b28bd979d1600c2200e3fe41c8e380.tar.gz
fatcat-f3b2432664b28bd979d1600c2200e3fe41c8e380.zip
api tweaks
Diffstat (limited to 'rust/fatcat-openapi2.yml')
-rw-r--r--rust/fatcat-openapi2.yml38
1 files changed, 24 insertions, 14 deletions
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: