summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-07-23 23:28:43 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-07-23 23:28:43 -0700
commit9fc83b6588e466146308d183e56cbc616f28016a (patch)
tree744062ccfdde0436fbb7ce70bdc0c61274392d75
parentaefd4ee331bff35141f3346abaac9e53d4517344 (diff)
downloadfatcat-9fc83b6588e466146308d183e56cbc616f28016a.tar.gz
fatcat-9fc83b6588e466146308d183e56cbc616f28016a.zip
start updating API spec
-rw-r--r--fatcat-openapi2.yml45
1 files changed, 39 insertions, 6 deletions
diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml
index dde02734..6524d31d 100644
--- a/fatcat-openapi2.yml
+++ b/fatcat-openapi2.yml
@@ -113,10 +113,18 @@ definitions:
type: string
#format: custom
example: "a77e4c11a57f1d757fca5754a8f83b5d4ece49a2d28596889127c1a2f3f28832"
- url:
- type: string
- format: url
- example: "https://example.edu/~frau/prcding.pdf"
+ urls:
+ type: array
+ items:
+ type: object
+ properties:
+ url:
+ type: string
+ format: url
+ example: "https://example.edu/~frau/prcding.pdf"
+ rel:
+ type: string
+ example: "webarchive"
mimetype:
type: string
example: "application/pdf"
@@ -155,6 +163,10 @@ definitions:
isbn13:
type: string
#format: custom
+ pmid:
+ type: string
+ pmcid:
+ type: string
volume:
type: string
issue:
@@ -175,6 +187,23 @@ definitions:
type: array
items:
$ref: "#/definitions/release_ref"
+ abstracts:
+ type: array
+ items:
+ type: object
+ properties:
+ sha1:
+ type: string
+ example: "3f242a192acc258bdfdb151943419437f440c313"
+ content:
+ type: string
+ example: "<jats:p>Some abstract thing goes here</jats:p>"
+ mimetype:
+ type: string
+ example: "application/xml+jats"
+ lang:
+ type: string
+ example: "en"
work_entity:
type: object
properties:
@@ -212,6 +241,10 @@ definitions:
type: string
#format: uuid
example: "86daea5b-1b6b-432a-bb67-ea97795f80fe"
+ prev_revision:
+ type: string
+ #format: uuid
+ example: "86daea5b-1b6b-432a-bb67-ea97795f80fe"
redirect_ident:
type: string
example: "q3nouwy3nnbsvo3h5klxsx4a7y"
@@ -301,7 +334,7 @@ definitions:
target_release_id:
type: string
#format: ident
- raw:
+ extra:
type: string
key:
type: string
@@ -324,7 +357,7 @@ definitions:
creator_id:
type: string
#format: ident
- raw:
+ extra_json:
type: string
role:
type: string