From 92d297ffc895f471a5061250bdd49b71e50a95ab Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 25 May 2018 17:05:03 -0700 Subject: refs and contribs --- rust/fatcat-api/api/swagger.yaml | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'rust/fatcat-api/api/swagger.yaml') diff --git a/rust/fatcat-api/api/swagger.yaml b/rust/fatcat-api/api/swagger.yaml index f173c53d..6e37a5d6 100644 --- a/rust/fatcat-api/api/swagger.yaml +++ b/rust/fatcat-api/api/swagger.yaml @@ -1169,11 +1169,11 @@ definitions: refs: type: "array" items: - type: "string" + $ref: "#/definitions/release_ref" contribs: type: "array" items: - type: "string" + $ref: "#/definitions/release_contrib" issue: type: "string" example: "12" @@ -1226,14 +1226,24 @@ definitions: release_type: "preprint" title: "title" contribs: - - "contribs" - - "contribs" + - creator_stub: "creator_stub" + creator_id: "creator_id" + index: 6 + contrib_type: "contrib_type" + - creator_stub: "creator_stub" + creator_id: "creator_id" + index: 6 + contrib_type: "contrib_type" revision: 42 volume: "volume" pages: "pages" refs: - - "refs" - - "refs" + - target_release_id: "target_release_id" + stub: "stub" + index: 0 + - target_release_id: "target_release_id" + stub: "stub" + index: 0 extra: "{}" editgroup_id: 16 state: "wip" @@ -1409,6 +1419,10 @@ definitions: type: "string" stub: type: "string" + example: + target_release_id: "target_release_id" + stub: "stub" + index: 0 upperCaseName: "RELEASE_REF" release_contrib: type: "object" @@ -1422,6 +1436,11 @@ definitions: type: "string" contrib_type: type: "string" + example: + creator_stub: "creator_stub" + creator_id: "creator_id" + index: 6 + contrib_type: "contrib_type" upperCaseName: "RELEASE_CONTRIB" editgroup_edits: properties: -- cgit v1.2.3