aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/api.yaml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-25 14:03:37 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-25 14:03:47 -0700
commit8e92be6e1e9396f4920c0f947337e1be643e1994 (patch)
tree2891a0ed7b6c780d1e86a81462b4c10dd13fa79a /rust/fatcat-api/api.yaml
parent495a1367510be66a9409d7b56a4b632a64aeefef (diff)
downloadfatcat-8e92be6e1e9396f4920c0f947337e1be643e1994.tar.gz
fatcat-8e92be6e1e9396f4920c0f947337e1be643e1994.zip
edit lists, refs, contribs
Diffstat (limited to 'rust/fatcat-api/api.yaml')
-rw-r--r--rust/fatcat-api/api.yaml96
1 files changed, 57 insertions, 39 deletions
diff --git a/rust/fatcat-api/api.yaml b/rust/fatcat-api/api.yaml
index 14c94f35..30e0f44d 100644
--- a/rust/fatcat-api/api.yaml
+++ b/rust/fatcat-api/api.yaml
@@ -152,6 +152,16 @@ definitions:
issue:
type: string
example: "12"
+ contribs:
+ type: array
+ items:
+ type: string
+ #$ref: "#/definitions/release_contrib"
+ refs:
+ type: array
+ items:
+ type: string
+ #$ref: "#/definitions/release_ref"
work_entity:
type: object
properties:
@@ -186,45 +196,29 @@ definitions:
extra:
type: object
additionalProperties: {}
-# container_edits:
-# type: array
-# item:
-# type: integer
-# format: int64
-# properties:
-# edit_id:
-# type: integer
-# example: 847
-# format: int64
-# type: array
-# items:
-# type: object
-# proposeties:
-# <<: *ENTITYEDITPROPS
-# creators:
-# type: array
-# items:
-# type: object
-# proposeties:
-# <<: *ENTITYEDITPROPS
-# files:
-# type: array
-# items:
-# type: object
-# proposeties:
-# <<: *ENTITYEDITPROPS
-# releases:
-# type: array
-# items:
-# type: object
-# proposeties:
-# <<: *ENTITYEDITPROPS
-# works:
-# type: array
-# items:
-# type: object
-# proposeties:
-# <<: *ENTITYEDITPROPS
+ edits:
+ type: object
+ properties:
+ containers:
+ type: array
+ items:
+ $ref: "#/definitions/entity_edit"
+ creators:
+ type: array
+ items:
+ $ref: "#/definitions/entity_edit"
+ files:
+ type: array
+ items:
+ $ref: "#/definitions/entity_edit"
+ releases:
+ type: array
+ items:
+ $ref: "#/definitions/entity_edit"
+ works:
+ type: array
+ items:
+ $ref: "#/definitions/entity_edit"
changelogentries:
type: array
items:
@@ -243,6 +237,30 @@ definitions:
timestamp:
type: string
format: date-time
+ release_ref:
+ type: object
+ properties:
+ index:
+ type: integer
+ format: int64
+ target_release_id:
+ type: string
+ #format: uuid
+ stub:
+ type: string
+ release_contrib:
+ type: object
+ properties:
+ index:
+ type: integer
+ format: int64
+ creator_id:
+ type: string
+ #format: uuid
+ creator_stub:
+ type: string
+ contrib_type:
+ type: string
x-entity-responses: &ENTITYRESPONSES
400: