Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger comments #343

Merged
merged 1 commit into from
Oct 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 22 additions & 33 deletions cmd/api/docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag
// This file was generated by swaggo/swag at
// 2020-10-16 16:26:29.946413305 +0300 MSK m=+101.951252931

package docs

Expand Down Expand Up @@ -113,10 +114,7 @@ var doc = `{
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.GetBigMapResponse"
}
"$ref": "#/definitions/handlers.GetBigMapResponse"
}
},
"204": {
Expand Down Expand Up @@ -328,10 +326,7 @@ var doc = `{
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.BigMapDiffByKeyResponse"
}
"$ref": "#/definitions/handlers.BigMapDiffByKeyResponse"
}
},
"400": {
Expand Down Expand Up @@ -401,6 +396,12 @@ var doc = `{
"$ref": "#/definitions/elastic.DAppStats"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/handlers.Error"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
Expand Down Expand Up @@ -708,10 +709,7 @@ var doc = `{
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.EntrypointSchema"
}
"$ref": "#/definitions/handlers.EntrypointSchema"
}
},
"400": {
Expand Down Expand Up @@ -742,7 +740,7 @@ var doc = `{
"contract"
],
"summary": "Execute entrypoint with passed arguments",
"operationId": "get-contract-entrypoints-run",
"operationId": "run-code",
"parameters": [
{
"type": "string",
Expand Down Expand Up @@ -1224,12 +1222,6 @@ var doc = `{
"$ref": "#/definitions/newmiguel.Node"
}
},
"204": {
"description": "No Content",
"schema": {
"$ref": "#/definitions/gin.H"
}
},
"400": {
"description": "Bad Request",
"schema": {
Expand Down Expand Up @@ -1479,10 +1471,7 @@ var doc = `{
"schema": {
"type": "array",
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.Token"
}
"$ref": "#/definitions/handlers.Token"
}
}
},
Expand Down Expand Up @@ -2022,10 +2011,7 @@ var doc = `{
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.PageableTokenContracts"
}
"$ref": "#/definitions/handlers.PageableTokenContracts"
}
},
"400": {
Expand Down Expand Up @@ -2275,10 +2261,7 @@ var doc = `{
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.PageableTokenContracts"
}
"$ref": "#/definitions/handlers.PageableTokenContracts"
}
},
"400": {
Expand Down Expand Up @@ -2340,6 +2323,12 @@ var doc = `{
"$ref": "#/definitions/handlers.TransferResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/handlers.Error"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
Expand Down Expand Up @@ -3136,7 +3125,7 @@ var doc = `{
"operations": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.Operation"
"type": "integer"
}
}
}
Expand Down
52 changes: 20 additions & 32 deletions cmd/api/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.GetBigMapResponse"
}
"$ref": "#/definitions/handlers.GetBigMapResponse"
}
},
"204": {
Expand Down Expand Up @@ -312,10 +309,7 @@
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.BigMapDiffByKeyResponse"
}
"$ref": "#/definitions/handlers.BigMapDiffByKeyResponse"
}
},
"400": {
Expand Down Expand Up @@ -385,6 +379,12 @@
"$ref": "#/definitions/elastic.DAppStats"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/handlers.Error"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
Expand Down Expand Up @@ -692,10 +692,7 @@
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.EntrypointSchema"
}
"$ref": "#/definitions/handlers.EntrypointSchema"
}
},
"400": {
Expand Down Expand Up @@ -726,7 +723,7 @@
"contract"
],
"summary": "Execute entrypoint with passed arguments",
"operationId": "get-contract-entrypoints-run",
"operationId": "run-code",
"parameters": [
{
"type": "string",
Expand Down Expand Up @@ -1208,12 +1205,6 @@
"$ref": "#/definitions/newmiguel.Node"
}
},
"204": {
"description": "No Content",
"schema": {
"$ref": "#/definitions/gin.H"
}
},
"400": {
"description": "Bad Request",
"schema": {
Expand Down Expand Up @@ -1463,10 +1454,7 @@
"schema": {
"type": "array",
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.Token"
}
"$ref": "#/definitions/handlers.Token"
}
}
},
Expand Down Expand Up @@ -2006,10 +1994,7 @@
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.PageableTokenContracts"
}
"$ref": "#/definitions/handlers.PageableTokenContracts"
}
},
"400": {
Expand Down Expand Up @@ -2259,10 +2244,7 @@
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.PageableTokenContracts"
}
"$ref": "#/definitions/handlers.PageableTokenContracts"
}
},
"400": {
Expand Down Expand Up @@ -2324,6 +2306,12 @@
"$ref": "#/definitions/handlers.TransferResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/handlers.Error"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
Expand Down Expand Up @@ -3120,7 +3108,7 @@
"operations": {
"type": "array",
"items": {
"$ref": "#/definitions/handlers.Operation"
"type": "integer"
}
}
}
Expand Down
40 changes: 16 additions & 24 deletions cmd/api/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ definitions:
type: string
operations:
items:
$ref: '#/definitions/handlers.Operation'
type: integer
type: array
type: object
handlers.OperationResult:
Expand Down Expand Up @@ -938,6 +938,10 @@ paths:
description: OK
schema:
$ref: '#/definitions/handlers.TransferResponse'
"400":
description: Bad Request
schema:
$ref: '#/definitions/handlers.Error'
"500":
description: Internal Server Error
schema:
Expand Down Expand Up @@ -1005,9 +1009,7 @@ paths:
"200":
description: OK
schema:
items:
$ref: '#/definitions/handlers.GetBigMapResponse'
type: array
$ref: '#/definitions/handlers.GetBigMapResponse'
"204":
description: No Content
schema:
Expand Down Expand Up @@ -1151,9 +1153,7 @@ paths:
"200":
description: OK
schema:
items:
$ref: '#/definitions/handlers.BigMapDiffByKeyResponse'
type: array
$ref: '#/definitions/handlers.BigMapDiffByKeyResponse'
"400":
description: Bad Request
schema:
Expand Down Expand Up @@ -1369,9 +1369,7 @@ paths:
"200":
description: OK
schema:
items:
$ref: '#/definitions/handlers.EntrypointSchema'
type: array
$ref: '#/definitions/handlers.EntrypointSchema'
"400":
description: Bad Request
schema:
Expand All @@ -1388,7 +1386,7 @@ paths:
consumes:
- application/json
description: Execute entrypoint with passed arguments
operationId: get-contract-entrypoints-run
operationId: run-code
parameters:
- description: Network
in: path
Expand Down Expand Up @@ -1720,10 +1718,6 @@ paths:
description: OK
schema:
$ref: '#/definitions/newmiguel.Node'
"204":
description: No Content
schema:
$ref: '#/definitions/gin.H'
"400":
description: Bad Request
schema:
Expand Down Expand Up @@ -1895,9 +1889,7 @@ paths:
description: OK
schema:
items:
items:
$ref: '#/definitions/handlers.Token'
type: array
$ref: '#/definitions/handlers.Token'
type: array
"400":
description: Bad Request
Expand Down Expand Up @@ -1946,6 +1938,10 @@ paths:
description: OK
schema:
$ref: '#/definitions/elastic.DAppStats'
"400":
description: Bad Request
schema:
$ref: '#/definitions/handlers.Error'
"500":
description: Internal Server Error
schema:
Expand Down Expand Up @@ -2305,9 +2301,7 @@ paths:
"200":
description: OK
schema:
items:
$ref: '#/definitions/handlers.PageableTokenContracts'
type: array
$ref: '#/definitions/handlers.PageableTokenContracts'
"400":
description: Bad Request
schema:
Expand Down Expand Up @@ -2480,9 +2474,7 @@ paths:
"200":
description: OK
schema:
items:
$ref: '#/definitions/handlers.PageableTokenContracts'
type: array
$ref: '#/definitions/handlers.PageableTokenContracts'
"400":
description: Bad Request
schema:
Expand Down
Loading