aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/api.yaml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-09 16:19:20 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-09 16:19:20 -0800
commite3a9b020283c62c8335f2f1124eab304074e3415 (patch)
treef8944f13c447a7ed9d3d2f8f4da5de0bd12d4f47 /rust/fatcat-api-spec/api.yaml
parent30618aaaf858b671544be984f5aa47681777e23e (diff)
downloadfatcat-e3a9b020283c62c8335f2f1124eab304074e3415.tar.gz
fatcat-e3a9b020283c62c8335f2f1124eab304074e3415.zip
rust impl response types
Diffstat (limited to 'rust/fatcat-api-spec/api.yaml')
-rw-r--r--rust/fatcat-api-spec/api.yaml11
1 files changed, 10 insertions, 1 deletions
diff --git a/rust/fatcat-api-spec/api.yaml b/rust/fatcat-api-spec/api.yaml
index 38f06948..da582ade 100644
--- a/rust/fatcat-api-spec/api.yaml
+++ b/rust/fatcat-api-spec/api.yaml
@@ -101,16 +101,25 @@ definitions:
error_response:
type: object
required:
+ - success
+ - error
- message
properties:
+ success:
+ type: boolean
+ error:
+ type: string
message:
type: string
example: "A really confusing, totally unexpected thing happened"
success:
type: object
required:
+ - success
- message
properties:
+ success:
+ type: boolean
message:
type: string
example: "The computers did the thing successfully!"
@@ -721,7 +730,7 @@ paths:
parameters:
- name: editgroup_id
in: query
- required: true
+ required: true
type: string
security:
- Bearer: []