summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/api
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-27 14:45:07 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-27 14:45:18 -0700
commit19eb1641eece9f03ca193417cdf244efc1a9da8a (patch)
tree78545c8e2117bcb0b46680de10d9a49b8f01d75f /rust/fatcat-api/api
parent29e02c4321762e9c0efcbd2129885ff0af661b34 (diff)
downloadfatcat-19eb1641eece9f03ca193417cdf244efc1a9da8a.tar.gz
fatcat-19eb1641eece9f03ca193417cdf244efc1a9da8a.zip
swagger spec: body -> entity
Diffstat (limited to 'rust/fatcat-api/api')
-rw-r--r--rust/fatcat-api/api/swagger.yaml96
1 files changed, 37 insertions, 59 deletions
diff --git a/rust/fatcat-api/api/swagger.yaml b/rust/fatcat-api/api/swagger.yaml
index e6b4b356..d9c03d42 100644
--- a/rust/fatcat-api/api/swagger.yaml
+++ b/rust/fatcat-api/api/swagger.yaml
@@ -17,7 +17,7 @@ paths:
post:
parameters:
- in: "body"
- name: "body"
+ name: "entity"
required: true
schema:
$ref: "#/definitions/creator_entity"
@@ -177,7 +177,7 @@ paths:
post:
parameters:
- in: "body"
- name: "body"
+ name: "entity"
required: true
schema:
$ref: "#/definitions/container_entity"
@@ -337,7 +337,7 @@ paths:
post:
parameters:
- in: "body"
- name: "body"
+ name: "entity"
required: true
schema:
$ref: "#/definitions/file_entity"
@@ -497,7 +497,7 @@ paths:
post:
parameters:
- in: "body"
- name: "body"
+ name: "entity"
required: true
schema:
$ref: "#/definitions/release_entity"
@@ -657,7 +657,7 @@ paths:
post:
parameters:
- in: "body"
- name: "body"
+ name: "entity"
required: true
schema:
$ref: "#/definitions/work_entity"
@@ -850,7 +850,7 @@ paths:
post:
parameters:
- in: "body"
- name: "body"
+ name: "entity"
required: true
schema:
$ref: "#/definitions/editgroup"
@@ -1321,30 +1321,30 @@ definitions:
- "editgroup_id"
- "ident"
properties:
- extra:
- type: "object"
- editgroup_id:
+ edit_id:
type: "integer"
format: "int64"
- example: 16
- redirect_ident:
+ example: 847
+ ident:
type: "string"
- example: "f1f046a3-45c9-4b99-adce-000000000002"
+ example: "f1f046a3-45c9-4b99-adce-000000000001"
revision:
type: "integer"
format: "int64"
example: 42
- ident:
+ redirect_ident:
type: "string"
- example: "f1f046a3-45c9-4b99-adce-000000000001"
- edit_id:
+ example: "f1f046a3-45c9-4b99-adce-000000000002"
+ editgroup_id:
type: "integer"
format: "int64"
- example: 847
+ example: 16
+ extra:
+ type: "object"
example:
ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
@@ -1382,66 +1382,66 @@ definitions:
edits:
works:
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
creators:
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
files:
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
containers:
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
releases:
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
@@ -1512,66 +1512,66 @@ definitions:
example:
works:
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
creators:
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
files:
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
containers:
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
releases:
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
- ident: "f1f046a3-45c9-4b99-adce-000000000001"
- extra: "{}"
edit_id: 847
+ extra: "{}"
redirect_ident: "f1f046a3-45c9-4b99-adce-000000000002"
editgroup_id: 16
revision: 42
@@ -1617,28 +1617,6 @@ x-entity-props:
extra:
type: "object"
additionalProperties: {}
-x-entity-edit-props:
- edit_id:
- type: "integer"
- example: 847
- format: "int64"
- ident:
- type: "string"
- example: "f1f046a3-45c9-4b99-adce-000000000001"
- revision:
- type: "integer"
- example: 42
- format: "int64"
- redirect_ident:
- type: "string"
- example: "f1f046a3-45c9-4b99-adce-000000000002"
- editgroup_id:
- type: "integer"
- example: 16
- format: "int64"
- extra:
- type: "object"
- additionalProperties: {}
x-entity-responses:
400:
description: "Bad Request"