summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/api.yaml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-30 17:53:28 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-30 17:57:32 -0700
commita82cffed703665496913d9ca0155e888ec35716b (patch)
treed04bb9242e1333fc7e671a645bd97ae528c21459 /rust/fatcat-api/api.yaml
parentf4064c19ec140987e15c64e80a3bf0c70025b31b (diff)
downloadfatcat-a82cffed703665496913d9ca0155e888ec35716b.tar.gz
fatcat-a82cffed703665496913d9ca0155e888ec35716b.zip
add remaining history endpoints
Diffstat (limited to 'rust/fatcat-api/api.yaml')
-rw-r--r--rust/fatcat-api/api.yaml88
1 files changed, 86 insertions, 2 deletions
diff --git a/rust/fatcat-api/api.yaml b/rust/fatcat-api/api.yaml
index bdcb3ca8..3d0690c6 100644
--- a/rust/fatcat-api/api.yaml
+++ b/rust/fatcat-api/api.yaml
@@ -186,13 +186,13 @@ definitions:
required:
- edit
- editgroup
- - changelog
+ - changelog_entry
properties:
edit:
$ref: "#/definitions/entity_edit"
editgroup:
$ref: "#/definitions/editgroup"
- changelog:
+ changelog_entry:
$ref: "#/definitions/changelog_entry"
entity_edit:
type: object
@@ -475,6 +475,27 @@ paths:
schema:
$ref: "#/definitions/creator_entity"
<<: *ENTITYRESPONSES
+ /creator/{id}/history:
+ parameters:
+ - name: id
+ in: path
+ type: string
+ required: true
+ - name: limit
+ in: query
+ type: integer
+ format: int64
+ required: false
+ get:
+ operationId: "get_creator_history"
+ responses:
+ 200:
+ description: Found Entity History
+ schema:
+ type: array
+ items:
+ $ref: "#/definitions/entity_history_entry"
+ <<: *ENTITYRESPONSES
/creator/{id}/releases:
parameters:
- name: id
@@ -553,6 +574,27 @@ paths:
schema:
$ref: "#/definitions/file_entity"
<<: *ENTITYRESPONSES
+ /file/{id}/history:
+ parameters:
+ - name: id
+ in: path
+ type: string
+ required: true
+ - name: limit
+ in: query
+ type: integer
+ format: int64
+ required: false
+ get:
+ operationId: "get_file_history"
+ responses:
+ 200:
+ description: Found Entity History
+ schema:
+ type: array
+ items:
+ $ref: "#/definitions/entity_history_entry"
+ <<: *ENTITYRESPONSES
/file/lookup:
get:
operationId: "lookup_file"
@@ -615,6 +657,27 @@ paths:
schema:
$ref: "#/definitions/release_entity"
<<: *ENTITYRESPONSES
+ /release/{id}/history:
+ parameters:
+ - name: id
+ in: path
+ type: string
+ required: true
+ - name: limit
+ in: query
+ type: integer
+ format: int64
+ required: false
+ get:
+ operationId: "get_release_history"
+ responses:
+ 200:
+ description: Found Entity History
+ schema:
+ type: array
+ items:
+ $ref: "#/definitions/entity_history_entry"
+ <<: *ENTITYRESPONSES
/release/{id}/files:
parameters:
- name: id
@@ -693,6 +756,27 @@ paths:
schema:
$ref: "#/definitions/work_entity"
<<: *ENTITYRESPONSES
+ /work/{id}/history:
+ parameters:
+ - name: id
+ in: path
+ type: string
+ required: true
+ - name: limit
+ in: query
+ type: integer
+ format: int64
+ required: false
+ get:
+ operationId: "get_work_history"
+ responses:
+ 200:
+ description: Found Entity History
+ schema:
+ type: array
+ items:
+ $ref: "#/definitions/entity_history_entry"
+ <<: *ENTITYRESPONSES
/work/{id}/releases:
parameters:
- name: id