Add swagger annotations and updates
Add swagger annotations to models to allow generating a full swagger definition. This will help generate clients in other languages if needed. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
b2dee1d844
commit
325bca4af3
3 changed files with 58 additions and 1 deletions
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
package params
|
||||
|
||||
// swagger:model APIErrorResponse
|
||||
// APIErrorResponse holds information about an error, returned by the API
|
||||
type APIErrorResponse struct {
|
||||
Error string `json:"error"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue