diff --git a/api/docs/docs.go b/api/docs/docs.go index 7561d78c..d3387b76 100644 --- a/api/docs/docs.go +++ b/api/docs/docs.go @@ -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,19 +574,12 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "status": { - "type": "string" - } - } + "type": "object", + "properties": { + "status": { + "type": "string" } - ] + } } }, "400": { @@ -899,19 +892,12 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "ready": { - "type": "string" - } - } + "type": "object", + "properties": { + "ready": { + "type": "string" } - ] + } } }, "400": { @@ -1625,22 +1611,15 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "vaaBytes": { - "type": "array", - "items": { - "type": "integer" - } - } + "type": "object", + "properties": { + "vaaBytes": { + "type": "array", + "items": { + "type": "integer" } } - ] + } } }, "400": { @@ -1686,22 +1665,15 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "vaaBytes": { - "type": "array", - "items": { - "type": "integer" - } - } + "type": "object", + "properties": { + "vaaBytes": { + "type": "array", + "items": { + "type": "integer" } } - ] + } } }, "400": { @@ -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() { diff --git a/api/docs/swagger.json b/api/docs/swagger.json index 322c29eb..ecddc907 100644 --- a/api/docs/swagger.json +++ b/api/docs/swagger.json @@ -15,7 +15,7 @@ }, "version": "1.0" }, - "basePath": "/v1", + "basePath": "/", "paths": { "/api/v1/address/{address}": { "get": { @@ -567,19 +567,12 @@ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "status": { - "type": "string" - } - } + "type": "object", + "properties": { + "status": { + "type": "string" } - ] + } } }, "400": { @@ -892,19 +885,12 @@ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "ready": { - "type": "string" - } - } + "type": "object", + "properties": { + "ready": { + "type": "string" } - ] + } } }, "400": { @@ -1618,22 +1604,15 @@ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "vaaBytes": { - "type": "array", - "items": { - "type": "integer" - } - } + "type": "object", + "properties": { + "vaaBytes": { + "type": "array", + "items": { + "type": "integer" } } - ] + } } }, "400": { @@ -1679,22 +1658,15 @@ "200": { "description": "OK", "schema": { - "allOf": [ - { - "type": "object" - }, - { - "type": "object", - "properties": { - "vaaBytes": { - "type": "array", - "items": { - "type": "integer" - } - } + "type": "object", + "properties": { + "vaaBytes": { + "type": "array", + "items": { + "type": "integer" } } - ] + } } }, "400": { @@ -1745,6 +1717,9 @@ "id": { "type": "string" }, + "originAddress": { + "type": "string" + }, "originChain": { "$ref": "#/definitions/vaa.ChainID" }, diff --git a/api/docs/swagger.yaml b/api/docs/swagger.yaml index 4210aa4d..b8fddabc 100644 --- a/api/docs/swagger.yaml +++ b/api/docs/swagger.yaml @@ -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,12 +1108,10 @@ paths: "200": description: OK schema: - allOf: - - type: object - - properties: - status: - type: string - type: object + properties: + status: + type: string + type: object "400": description: Bad Request "500": @@ -1323,12 +1323,10 @@ paths: "200": description: OK schema: - allOf: - - type: object - - properties: - ready: - type: string - type: object + properties: + ready: + type: string + type: object "400": description: Bad Request "500": @@ -1824,14 +1822,12 @@ paths: "200": description: OK schema: - allOf: - - type: object - - properties: - vaaBytes: - items: - type: integer - type: array - type: object + properties: + vaaBytes: + items: + type: integer + type: array + type: object "400": description: Bad Request "500": @@ -1862,14 +1858,12 @@ paths: "200": description: OK schema: - allOf: - - type: object - - properties: - vaaBytes: - items: - type: integer - type: array - type: object + properties: + vaaBytes: + items: + type: integer + type: array + type: object "400": description: Bad Request "500": diff --git a/api/main.go b/api/main.go index 9122eba0..218b7078 100644 --- a/api/main.go +++ b/api/main.go @@ -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()