fix api doc basepath (#423)
fix api doc basepath Co-authored-by: Hernan Gips <hernangips@OnoSendai.local>
This commit is contained in:
parent
3f823c51ac
commit
b490be0f5d
|
@ -1,4 +1,4 @@
|
|||
// Code generated by swaggo/swag. DO NOT EDIT
|
||||
// Package docs Code generated by swaggo/swag. DO NOT EDIT
|
||||
package docs
|
||||
|
||||
import "github.com/swaggo/swag"
|
||||
|
@ -574,11 +574,6 @@ const docTemplate = `{
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
|
@ -586,8 +581,6 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request"
|
||||
|
@ -899,11 +892,6 @@ const docTemplate = `{
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ready": {
|
||||
|
@ -911,8 +899,6 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request"
|
||||
|
@ -1625,11 +1611,6 @@ const docTemplate = `{
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"vaaBytes": {
|
||||
|
@ -1640,8 +1621,6 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request"
|
||||
|
@ -1686,11 +1665,6 @@ const docTemplate = `{
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"vaaBytes": {
|
||||
|
@ -1701,8 +1675,6 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request"
|
||||
|
@ -1752,6 +1724,9 @@ const docTemplate = `{
|
|||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"originAddress": {
|
||||
"type": "string"
|
||||
},
|
||||
"originChain": {
|
||||
"$ref": "#/definitions/vaa.ChainID"
|
||||
},
|
||||
|
@ -2782,12 +2757,14 @@ const docTemplate = `{
|
|||
var SwaggerInfo = &swag.Spec{
|
||||
Version: "1.0",
|
||||
Host: "",
|
||||
BasePath: "/v1",
|
||||
BasePath: "/",
|
||||
Schemes: []string{},
|
||||
Title: "Wormhole Guardian API",
|
||||
Description: "Wormhole Guardian API\nThis is the API for the Wormhole Guardian and Explorer.\nThe API has two namespaces: wormscan and guardian.\nwormscan is the namespace for the explorer and the new endpoints. The prefix is /api/v1.\nguardian is the legacy namespace backguard compatible with guardian node API. The prefix is /v1.\nThis API is public and does not require authentication although some endpoints are rate limited.\nCheck each endpoint documentation for more information.",
|
||||
InfoInstanceName: "swagger",
|
||||
SwaggerTemplate: docTemplate,
|
||||
LeftDelim: "{{",
|
||||
RightDelim: "}}",
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
},
|
||||
"version": "1.0"
|
||||
},
|
||||
"basePath": "/v1",
|
||||
"basePath": "/",
|
||||
"paths": {
|
||||
"/api/v1/address/{address}": {
|
||||
"get": {
|
||||
|
@ -567,11 +567,6 @@
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
|
@ -579,8 +574,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request"
|
||||
|
@ -892,11 +885,6 @@
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ready": {
|
||||
|
@ -904,8 +892,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request"
|
||||
|
@ -1618,11 +1604,6 @@
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"vaaBytes": {
|
||||
|
@ -1633,8 +1614,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request"
|
||||
|
@ -1679,11 +1658,6 @@
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"vaaBytes": {
|
||||
|
@ -1694,8 +1668,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request"
|
||||
|
@ -1745,6 +1717,9 @@
|
|||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"originAddress": {
|
||||
"type": "string"
|
||||
},
|
||||
"originChain": {
|
||||
"$ref": "#/definitions/vaa.ChainID"
|
||||
},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
basePath: /v1
|
||||
basePath: /
|
||||
definitions:
|
||||
address.AddressOverview:
|
||||
properties:
|
||||
|
@ -24,6 +24,8 @@ definitions:
|
|||
$ref: '#/definitions/vaa.ChainID'
|
||||
id:
|
||||
type: string
|
||||
originAddress:
|
||||
type: string
|
||||
originChain:
|
||||
$ref: '#/definitions/vaa.ChainID'
|
||||
status:
|
||||
|
@ -1106,9 +1108,7 @@ paths:
|
|||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- type: object
|
||||
- properties:
|
||||
properties:
|
||||
status:
|
||||
type: string
|
||||
type: object
|
||||
|
@ -1323,9 +1323,7 @@ paths:
|
|||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- type: object
|
||||
- properties:
|
||||
properties:
|
||||
ready:
|
||||
type: string
|
||||
type: object
|
||||
|
@ -1824,9 +1822,7 @@ paths:
|
|||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- type: object
|
||||
- properties:
|
||||
properties:
|
||||
vaaBytes:
|
||||
items:
|
||||
type: integer
|
||||
|
@ -1862,9 +1858,7 @@ paths:
|
|||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- type: object
|
||||
- properties:
|
||||
properties:
|
||||
vaaBytes:
|
||||
items:
|
||||
type: integer
|
||||
|
|
|
@ -86,7 +86,7 @@ func GetSwagger(ctx *fiber.Ctx) error {
|
|||
// @contact.email info@wormhole.com
|
||||
// @license.name Apache 2.0
|
||||
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
// @BasePath /v1
|
||||
// @BasePath /
|
||||
func main() {
|
||||
appCtx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
|
Loading…
Reference in New Issue