summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-09 00:04:58 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-09 00:04:58 -0700
commit683aa854c6294670b97ec8d6e7c5decfdcc66ad0 (patch)
tree3969c79cb70bc5d4ab0a91bc00b3bbd0c432167f
parentf7c1d9f49854f616e335c8a904e709624a51b0b3 (diff)
downloadfatcat-683aa854c6294670b97ec8d6e7c5decfdcc66ad0.tar.gz
fatcat-683aa854c6294670b97ec8d6e7c5decfdcc66ad0.zip
API schema changes (matching recent SQL)
-rw-r--r--fatcat-openapi2.yml41
1 files changed, 40 insertions, 1 deletions
diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml
index 4d3443de..6fd73deb 100644
--- a/fatcat-openapi2.yml
+++ b/fatcat-openapi2.yml
@@ -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