aboutsummaryrefslogtreecommitdiffstats
path: root/golang/fatcat-openapi2.yml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-10 17:10:19 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-10 17:10:19 -0700
commitc6422b49b8b946386ca1068ec6887bbf07a8b166 (patch)
treec6c082c0875edfbb0eeb7379813e01024fa74367 /golang/fatcat-openapi2.yml
parent8827f2a643b5dee773869eccb5d839f636b2295d (diff)
downloadfatcat-c6422b49b8b946386ca1068ec6887bbf07a8b166.tar.gz
fatcat-c6422b49b8b946386ca1068ec6887bbf07a8b166.zip
404 example
Diffstat (limited to 'golang/fatcat-openapi2.yml')
-rw-r--r--golang/fatcat-openapi2.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/golang/fatcat-openapi2.yml b/golang/fatcat-openapi2.yml
index 85d3b4fc..8f2feec9 100644
--- a/golang/fatcat-openapi2.yml
+++ b/golang/fatcat-openapi2.yml
@@ -34,7 +34,7 @@ definitions:
properties:
state:
type: string
- # actually enum of: (wip, active, redirect, deleted)
+ enum: ["wip", "active", "redirect", "deleted"]
ident:
type: string
# format: uuid
@@ -79,6 +79,10 @@ paths:
description: fetch a single creator by id
schema:
$ref: "#/definitions/creator_entity"
+ 404:
+ description: no such creator
+ schema:
+ $ref: "#/definitions/error"
default:
description: generic error response
schema: