summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/api.yaml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-20 19:15:41 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-20 19:15:59 -0700
commitc06079af0949ac44472c9fdc2fc81766316cb88d (patch)
tree91eba894520e3aa3aff004230c97d7ea13d1a009 /rust/fatcat-api-spec/api.yaml
parentdd9598577da8dfccaf0bb6daff56bab9d1d8e9a6 (diff)
downloadfatcat-c06079af0949ac44472c9fdc2fc81766316cb88d.tar.gz
fatcat-c06079af0949ac44472c9fdc2fc81766316cb88d.zip
schema: allow releases expansion on file/fileset/webcapture
And codegen rust and python
Diffstat (limited to 'rust/fatcat-api-spec/api.yaml')
-rw-r--r--rust/fatcat-api-spec/api.yaml21
1 files changed, 18 insertions, 3 deletions
diff --git a/rust/fatcat-api-spec/api.yaml b/rust/fatcat-api-spec/api.yaml
index 92253e9d..bac0efaa 100644
--- a/rust/fatcat-api-spec/api.yaml
+++ b/rust/fatcat-api-spec/api.yaml
@@ -188,6 +188,11 @@ definitions:
type: array
items:
<<: *FATCATIDENT
+ releases:
+ description: "Optional; GET-only"
+ type: array
+ items:
+ $ref: "#/definitions/release_entity"
file_url:
type: object
required:
@@ -218,6 +223,11 @@ definitions:
type: array
items:
<<: *FATCATIDENT
+ releases:
+ description: "Optional; GET-only"
+ type: array
+ items:
+ $ref: "#/definitions/release_entity"
fileset_url:
type: object
required:
@@ -278,6 +288,11 @@ definitions:
type: array
items:
<<: *FATCATIDENT
+ releases:
+ description: "Optional; GET-only"
+ type: array
+ items:
+ $ref: "#/definitions/release_entity"
webcapture_cdx_line:
type: object
required:
@@ -1382,7 +1397,7 @@ paths:
in: query
type: string
required: false
- description: "List of sub-entities to expand in response. For files, none accepted (yet)."
+ description: "List of sub-entities to expand in response. For files, `releases` is accepted."
- name: hide
in: query
type: string
@@ -1637,7 +1652,7 @@ paths:
in: query
type: string
required: false
- description: "List of sub-entities to expand in response. For filesets, none accepted (yet)."
+ description: "List of sub-entities to expand in response. For filesets, `releases` is accepted."
- name: hide
in: query
type: string
@@ -1858,7 +1873,7 @@ paths:
in: query
type: string
required: false
- description: "List of sub-entities to expand in response. For webcaptures, none accepted (yet)."
+ description: "List of sub-entities to expand in response. For webcaptures, `releases` is accepted."
- name: hide
in: query
type: string