aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat-openapi2.yml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-10 15:03:46 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-10 15:03:50 -0700
commitb07f92545eaf112db735903dac8f7809fe62440a (patch)
tree81c43ea0e2260ba330284f8fc2d5cec7aa3a07f3 /fatcat-openapi2.yml
parent8e3038e55282088825a1243a34f2d9f7d25e5533 (diff)
downloadfatcat-b07f92545eaf112db735903dac8f7809fe62440a.tar.gz
fatcat-b07f92545eaf112db735903dac8f7809fe62440a.zip
schema: move release ext_ids to their own table and sub-entity
Some identifiers are kept on the main release_rev table to minimize impact to the existing database.
Diffstat (limited to 'fatcat-openapi2.yml')
-rw-r--r--fatcat-openapi2.yml63
1 files changed, 34 insertions, 29 deletions
diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml
index 389ba24e..696d8495 100644
--- a/fatcat-openapi2.yml
+++ b/fatcat-openapi2.yml
@@ -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