-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: make /v1/blob authorizable in docs
- Loading branch information
1 parent
5c21b41
commit 9379741
Showing
3 changed files
with
36 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,27 +19,27 @@ var rootCmd = &cobra.Command{ | |
Short: "DipDup Verticals | Celenium API", | ||
} | ||
|
||
// @title Celenium API | ||
// @version 1.0 | ||
// @description Celenium API is a powerful tool to access all blockchain data that is processed and indexed by our proprietary indexer. With Celenium API you can retrieve all historical data, off-chain data, blobs and statistics through our REST API. Celenium API indexer are open source, which allows you to not depend on third-party services. You can clone, build and run them independently, giving you full control over all components. If you have any questions or feature requests, please feel free to contact us. We appreciate your feedback! | ||
// @host api-mainnet.celenium.io | ||
// @schemes https | ||
// @BasePath /v1 | ||
// @title Celenium API | ||
// @version 1.0 | ||
// @description Celenium API is a powerful tool to access all blockchain data that is processed and indexed by our proprietary indexer. With Celenium API you can retrieve all historical data, off-chain data, blobs and statistics through our REST API. Celenium API indexer are open source, which allows you to not depend on third-party services. You can clone, build and run them independently, giving you full control over all components. If you have any questions or feature requests, please feel free to contact us. We appreciate your feedback! | ||
// @host api-mainnet.celenium.io | ||
// @schemes https | ||
// @BasePath /v1 | ||
// | ||
// @contact.name Support | ||
// @contact.url https://discord.gg/3k83Przqk8 | ||
// @contact.email [email protected] | ||
// @contact.name Support | ||
// @contact.url https://discord.gg/3k83Przqk8 | ||
// @contact.email [email protected] | ||
// | ||
// @externalDocs.description Full documentation | ||
// @externalDocs.url https://api-docs.celenium.io/ | ||
// @externalDocs.description Full documentation | ||
// @externalDocs.url https://api-docs.celenium.io/ | ||
// | ||
// @x-servers [{"url": "api-mainnet.celenium.io", "description": "Celenium Mainnet API"},{"url": "api-mocha.celenium.io", "description": "Celenium Mocha API"},{"url": "api-arabica.celenium.io", "description": "Celenium Arabica API"}] | ||
// @query.collection.format multi | ||
// @x-servers [{"url": "api-mainnet.celenium.io", "description": "Celenium Mainnet API"},{"url": "api-mocha.celenium.io", "description": "Celenium Mocha API"},{"url": "api-arabica.celenium.io", "description": "Celenium Arabica API"}] | ||
// @query.collection.format multi | ||
// | ||
// @securityDefinitions.apikey ApiKeyAuth | ||
// @in header | ||
// @name apikey | ||
// @description To authorize your requests you have to select the required tariff on our site. Then you receive api key to authorize. Api key should be passed via request header `apikey`. | ||
// @securityDefinitions.apikey ApiKeyAuth | ||
// @in header | ||
// @name apikey | ||
// @description To authorize your requests you have to select the required tariff on our site. Then you receive api key to authorize. Api key should be passed via request header `apikey`. | ||
func main() { | ||
cfg, err := initConfig() | ||
if err != nil { | ||
|