From e3a9b020283c62c8335f2f1124eab304074e3415 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 9 Jan 2019 16:19:20 -0800 Subject: rust impl response types --- rust/fatcat-api-spec/api/swagger.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'rust/fatcat-api-spec/api') 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: -- cgit v1.2.3