|
| 1 | +// Package docs Code generated by swaggo/swag. DO NOT EDIT |
| 2 | +package docs |
| 3 | + |
| 4 | +import "github.com/swaggo/swag" |
| 5 | + |
| 6 | +const docTemplate = `{ |
| 7 | + "schemes": {{ marshal .Schemes }}, |
| 8 | + "swagger": "2.0", |
| 9 | + "info": { |
| 10 | + "description": "{{escape .Description}}", |
| 11 | + "title": "{{.Title}}", |
| 12 | + "contact": {}, |
| 13 | + "version": "{{.Version}}" |
| 14 | + }, |
| 15 | + "host": "{{.Host}}", |
| 16 | + "basePath": "{{.BasePath}}", |
| 17 | + "paths": { |
| 18 | + "/accounts": { |
| 19 | + "post": { |
| 20 | + "description": "Add new account", |
| 21 | + "consumes": [ |
| 22 | + "application/json" |
| 23 | + ], |
| 24 | + "produces": [ |
| 25 | + "application/json" |
| 26 | + ], |
| 27 | + "tags": [ |
| 28 | + "Accounts" |
| 29 | + ], |
| 30 | + "summary": "Create account", |
| 31 | + "parameters": [ |
| 32 | + { |
| 33 | + "description": "Account properties", |
| 34 | + "name": "request", |
| 35 | + "in": "body", |
| 36 | + "required": true, |
| 37 | + "schema": { |
| 38 | + "$ref": "#/definitions/handler.AccountInputDTO" |
| 39 | + } |
| 40 | + } |
| 41 | + ], |
| 42 | + "responses": { |
| 43 | + "201": { |
| 44 | + "description": "Created" |
| 45 | + }, |
| 46 | + "400": { |
| 47 | + "description": "Bad Request" |
| 48 | + }, |
| 49 | + "500": { |
| 50 | + "description": "Internal Server Error" |
| 51 | + } |
| 52 | + } |
| 53 | + } |
| 54 | + }, |
| 55 | + "/accounts/{accountId}": { |
| 56 | + "get": { |
| 57 | + "description": "Get account by id", |
| 58 | + "produces": [ |
| 59 | + "application/json" |
| 60 | + ], |
| 61 | + "tags": [ |
| 62 | + "Accounts" |
| 63 | + ], |
| 64 | + "summary": "Show account details", |
| 65 | + "parameters": [ |
| 66 | + { |
| 67 | + "type": "integer", |
| 68 | + "description": "Account id", |
| 69 | + "name": "accountId", |
| 70 | + "in": "path", |
| 71 | + "required": true |
| 72 | + } |
| 73 | + ], |
| 74 | + "responses": { |
| 75 | + "200": { |
| 76 | + "description": "OK" |
| 77 | + }, |
| 78 | + "404": { |
| 79 | + "description": "Not Found" |
| 80 | + }, |
| 81 | + "500": { |
| 82 | + "description": "Internal Server Error" |
| 83 | + } |
| 84 | + } |
| 85 | + } |
| 86 | + } |
| 87 | + }, |
| 88 | + "definitions": { |
| 89 | + "handler.AccountInputDTO": { |
| 90 | + "type": "object", |
| 91 | + "required": [ |
| 92 | + "document_number" |
| 93 | + ], |
| 94 | + "properties": { |
| 95 | + "document_number": { |
| 96 | + "type": "string" |
| 97 | + } |
| 98 | + } |
| 99 | + } |
| 100 | + } |
| 101 | +}` |
| 102 | + |
| 103 | +// SwaggerInfo holds exported Swagger Info so clients can modify it |
| 104 | +var SwaggerInfo = &swag.Spec{ |
| 105 | + Version: "1.0", |
| 106 | + Host: "", |
| 107 | + BasePath: "", |
| 108 | + Schemes: []string{}, |
| 109 | + Title: "Transactions API", |
| 110 | + Description: "", |
| 111 | + InfoInstanceName: "swagger", |
| 112 | + SwaggerTemplate: docTemplate, |
| 113 | + LeftDelim: "{{", |
| 114 | + RightDelim: "}}", |
| 115 | +} |
| 116 | + |
| 117 | +func init() { |
| 118 | + swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) |
| 119 | +} |
0 commit comments