summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/api.yaml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-09 00:05:29 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-09 00:05:29 -0700
commitbf63870c88b5a62a2aad08929465b37d8be474dc (patch)
treeff1b2d78e9cce854563f89ab5828e63fa5f4fb94 /rust/fatcat-api-spec/api.yaml
parent8888e6ea1af818a0a5dfb7414fa767ae176d092f (diff)
downloadfatcat-bf63870c88b5a62a2aad08929465b37d8be474dc.tar.gz
fatcat-bf63870c88b5a62a2aad08929465b37d8be474dc.zip
rust codegen
Diffstat (limited to 'rust/fatcat-api-spec/api.yaml')
-rw-r--r--rust/fatcat-api-spec/api.yaml41
1 files changed, 40 insertions, 1 deletions
diff --git a/rust/fatcat-api-spec/api.yaml b/rust/fatcat-api-spec/api.yaml
index 4d3443de..6fd73deb 100644
--- a/rust/fatcat-api-spec/api.yaml
+++ b/rust/fatcat-api-spec/api.yaml
@@ -281,10 +281,17 @@ definitions:
type: integer
example: 200
format: int64
+ size_bytes:
+ type: integer
+ example: 1235
+ format: int64
sha1:
<<: *FATCATSHA1
sha256:
<<: *FATCATSHA256
+ extra:
+ type: object
+ additionalProperties: {}
archive_urls:
type: array
items:
@@ -320,6 +327,9 @@ definitions:
title:
type: string
description: "Required for valid entities. The title used in citations and for display; usually English"
+ subtitle:
+ type: string
+ description: "Avoid this field if possible, and merge with title; usually English"
original_title:
type: string
description: "Title in original language (or, the language of the full text of this release)"
@@ -350,7 +360,7 @@ definitions:
release_type:
type: string
example: "book"
- release_status:
+ release_stage:
type: string
example: "preprint, retracted"
release_date:
@@ -360,6 +370,15 @@ definitions:
type: integer
example: 2014
format: int64
+ withdrawn_state:
+ type: string
+ withdrawn_date:
+ type: string
+ format: date
+ withdrawn_year:
+ type: integer
+ example: 2014
+ format: int64
doi:
type: string
#format: custom
@@ -380,6 +399,10 @@ definitions:
type: string
jstor_id:
type: string
+ ark_id:
+ type: string
+ mag_id:
+ type: string
volume:
type: string
issue:
@@ -387,6 +410,10 @@ definitions:
example: "12"
pages:
type: string
+ number:
+ type: string
+ version:
+ type: string
publisher:
type: string
language:
@@ -603,6 +630,10 @@ definitions:
description: "Optional; GET-only"
raw_name:
type: string
+ given_name:
+ type: string
+ surname:
+ type: string
role:
type: string
raw_affiliation:
@@ -2269,6 +2300,14 @@ paths:
in: query
type: string
required: false
+ - name: ark_id
+ in: query
+ type: string
+ required: false
+ - name: mag_id
+ in: query
+ type: string
+ required: false
- name: expand
in: query
type: string