Closed bitdivision closed 8 years ago
You can do something like this:
## Error (object)
- title (string)
- description (string)
## UnauthorizedError (Error)
- title: Unauthorized
- description: You do not have authorization to access this resource.
# Group Lorem
## Ipsum [/ipsum]
### Retrieve [GET]
- response 200 (application/json)
- response 401 (application/json)
- attributes (UnauthorizedError)
Does this help?
Okay. That's a little better. Thanks @zdne
I don't see any way to include a data structure as the entire response of an action. I'm essentially hoping to refactor a blueprint so that error responses don't have to be repeated for every endpoint.
e.g.
I currently have a lot of these:
on multiple endpoints and I'm hoping there's a way to factor them out into a single one and use something like
Is this possible?