aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/api.yaml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-10 15:05:21 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-10 15:05:21 -0700
commitaa6545c4125d800765fa2673a6b4a534cee54aad (patch)
tree735d728d396fa3c95d0e3c24578a02e923168be3 /rust/fatcat-api-spec/api.yaml
parentb07f92545eaf112db735903dac8f7809fe62440a (diff)
downloadfatcat-aa6545c4125d800765fa2673a6b4a534cee54aad.tar.gz
fatcat-aa6545c4125d800765fa2673a6b4a534cee54aad.zip
codegen extid changes (rust)
Diffstat (limited to 'rust/fatcat-api-spec/api.yaml')
-rw-r--r--rust/fatcat-api-spec/api.yaml63
1 files changed, 34 insertions, 29 deletions
diff --git a/rust/fatcat-api-spec/api.yaml b/rust/fatcat-api-spec/api.yaml
index 389ba24e..696d8495 100644
--- a/rust/fatcat-api-spec/api.yaml
+++ b/rust/fatcat-api-spec/api.yaml
@@ -319,6 +319,8 @@ definitions:
release_entity:
type: object
# required for creation: title
+ required:
+ - ext_ids
properties:
<<: *ENTITYPROPS
title:
@@ -376,30 +378,33 @@ definitions:
type: integer
example: 2014
format: int64
- doi:
- type: string
- #format: custom
- example: "10.1234/abcde.789"
- wikidata_qid:
- type: string
- isbn13:
- type: string
- #format: custom
- pmid:
- type: string
- pmcid:
- type: string
- core_id:
- type: string
- #format: custom
- arxiv_id:
- type: string
- jstor_id:
- type: string
- ark_id:
- type: string
- mag_id:
- type: string
+ ext_ids:
+ type: object
+ properties:
+ doi:
+ type: string
+ #format: custom
+ example: "10.1234/abcde.789"
+ wikidata_qid:
+ type: string
+ isbn13:
+ type: string
+ #format: custom
+ pmid:
+ type: string
+ pmcid:
+ type: string
+ core:
+ type: string
+ #format: custom
+ arxiv:
+ type: string
+ jstor:
+ type: string
+ ark:
+ type: string
+ mag:
+ type: string
volume:
type: string
issue:
@@ -2285,23 +2290,23 @@ paths:
in: query
type: string
required: false
- - name: core_id
+ - name: core
in: query
type: string
required: false
- - name: arxiv_id
+ - name: arxiv
in: query
type: string
required: false
- - name: jstor_id
+ - name: jstor
in: query
type: string
required: false
- - name: ark_id
+ - name: ark
in: query
type: string
required: false
- - name: mag_id
+ - name: mag
in: query
type: string
required: false