summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/api
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
parent30618aaaf858b671544be984f5aa47681777e23e (diff)
downloadfatcat-e3a9b020283c62c8335f2f1124eab304074e3415.tar.gz
fatcat-e3a9b020283c62c8335f2f1124eab304074e3415.zip
rust impl response types
Diffstat (limited to 'rust/fatcat-api-spec/api')
-rw-r--r--rust/fatcat-api-spec/api/swagger.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/rust/fatcat-api-spec/api/swagger.yaml b/rust/fatcat-api-spec/api/swagger.yaml
index 7ee33725..293186c6 100644
--- a/rust/fatcat-api-spec/api/swagger.yaml
+++ b/rust/fatcat-api-spec/api/swagger.yaml
@@ -6734,8 +6734,14 @@ definitions:
error_response:
type: "object"
required:
+ - "error"
- "message"
+ - "success"
properties:
+ success:
+ type: "boolean"
+ error:
+ type: "string"
message:
type: "string"
example: "A really confusing, totally unexpected thing happened"
@@ -6744,11 +6750,15 @@ definitions:
type: "object"
required:
- "message"
+ - "success"
properties:
+ success:
+ type: "boolean"
message:
type: "string"
example: "The computers did the thing successfully!"
example:
+ success: true
message: "The computers did the thing successfully!"
upperCaseName: "SUCCESS"
container_entity: