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

chore: update swagger to v2 #195

Merged
merged 1 commit into from
Jan 8, 2025
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
4 changes: 2 additions & 2 deletions cmd/staking-api-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ func init() {
}

// @title Babylon Staking API
// @version 1.0
// @description The Babylon Staking API offers information about the state of the Phase-1 BTC Staking system.
// @version 2.0
// @description The Babylon Staking API offers information about the state of the Babylon BTC Staking system.
// @description Your access and use is governed by the API Access License linked to below.
// @license.name API Access License
// @license.url https://docs.babylonlabs.io/assets/files/api-access-license.pdf
Expand Down
4 changes: 2 additions & 2 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1403,12 +1403,12 @@ const docTemplate = `{

// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Version: "2.0",
Host: "",
BasePath: "",
Schemes: []string{},
Title: "Babylon Staking API",
Description: "The Babylon Staking API offers information about the state of the Phase-1 BTC Staking system.\nYour access and use is governed by the API Access License linked to below.",
Description: "The Babylon Staking API offers information about the state of the Babylon BTC Staking system.\nYour access and use is governed by the API Access License linked to below.",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
Expand Down
4 changes: 2 additions & 2 deletions docs/swagger.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"description": "The Babylon Staking API offers information about the state of the Phase-1 BTC Staking system.\nYour access and use is governed by the API Access License linked to below.",
"description": "The Babylon Staking API offers information about the state of the Babylon BTC Staking system.\nYour access and use is governed by the API Access License linked to below.",
"title": "Babylon Staking API",
"contact": {
"email": "[email protected]"
Expand All @@ -10,7 +10,7 @@
"name": "API Access License",
"url": "https://docs.babylonlabs.io/assets/files/api-access-license.pdf"
},
"version": "1.0"
"version": "2.0"
},
"paths": {
"/healthcheck": {
Expand Down
4 changes: 2 additions & 2 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -512,13 +512,13 @@ info:
contact:
email: [email protected]
description: |-
The Babylon Staking API offers information about the state of the Phase-1 BTC Staking system.
The Babylon Staking API offers information about the state of the Babylon BTC Staking system.
Your access and use is governed by the API Access License linked to below.
license:
name: API Access License
url: https://docs.babylonlabs.io/assets/files/api-access-license.pdf
title: Babylon Staking API
version: "1.0"
version: "2.0"
paths:
/healthcheck:
get:
Expand Down
Loading