aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-17 17:00:25 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-17 17:00:27 -0700
commitf3241d35dbb445b7e3c15f1759431580d830bffe (patch)
tree7120fef6ae4195f0a7da9225b8fab6db54e791f1
parentbdc3210eaea59b346906d34eb1deb2081a0b8360 (diff)
downloadfatcat-f3241d35dbb445b7e3c15f1759431580d830bffe.tar.gz
fatcat-f3241d35dbb445b7e3c15f1759431580d830bffe.zip
spec: reverse-lookup endpoints
files-for-release releases-for-creator releases-for-work
-rw-r--r--fatcat-openapi2.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml
index c53ff4a7..44fde1f6 100644
--- a/fatcat-openapi2.yml
+++ b/fatcat-openapi2.yml
@@ -438,6 +438,22 @@ paths:
schema:
$ref: "#/definitions/creator_entity"
<<: *ENTITYRESPONSES
+ /creator/{id}/releases:
+ parameters:
+ - name: id
+ in: path
+ type: string
+ required: true
+ get:
+ operationId: "get_creator_releases"
+ responses:
+ 200:
+ description: Found Entity
+ schema:
+ type: array
+ items:
+ $ref: "#/definitions/release_entity"
+ <<: *ENTITYRESPONSES
/creator/lookup:
get:
operationId: "lookup_creator"
@@ -562,6 +578,22 @@ paths:
schema:
$ref: "#/definitions/release_entity"
<<: *ENTITYRESPONSES
+ /release/{id}/files:
+ parameters:
+ - name: id
+ in: path
+ type: string
+ required: true
+ get:
+ operationId: "get_release_files"
+ responses:
+ 200:
+ description: Found Entity
+ schema:
+ type: array
+ items:
+ $ref: "#/definitions/file_entity"
+ <<: *ENTITYRESPONSES
/release/lookup:
get:
operationId: "lookup_release"
@@ -624,6 +656,22 @@ paths:
schema:
$ref: "#/definitions/work_entity"
<<: *ENTITYRESPONSES
+ /work/{id}/releases:
+ parameters:
+ - name: id
+ in: path
+ type: string
+ required: true
+ get:
+ operationId: "get_work_releases"
+ responses:
+ 200:
+ description: Found Entity
+ schema:
+ type: array
+ items:
+ $ref: "#/definitions/release_entity"
+ <<: *ENTITYRESPONSES
/editor/{username}:
parameters:
- name: username