Skip to content

Commit

Permalink
Merge pull request #82 from sei-protocol/feature/swagger-docs
Browse files Browse the repository at this point in the history
Swagger docs howto
  • Loading branch information
dssei authored Jun 7, 2024
2 parents eca6dad + 9431e27 commit 39ef5da
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions pages/dev-node/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"node-operators": "Node Operators",
"node-configuration": "Node Configuration",
"configure-general-settings": "Configure General Settings",
"swagger-docs-endpoint": "Swagger Docs Endpoint",
"join-a-network": "Join a Network",
"running-seid": "Running Seid"
}
16 changes: 16 additions & 0 deletions pages/dev-node/swagger-docs-endpoint.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Swagger Docs Endpoint
To enable the Swagger docs endpoint, you need to update `api.swagger` value to `true` in the `app.toml` file.:

```toml
###############################################################################
### API Configuration ###
###############################################################################

[api]

# Swagger defines if swagger documentation should automatically be registered.
swagger = true
```

Once node is restarted, swagger docs will be available at `http://<node-ip>:<port>/swagger/`

0 comments on commit 39ef5da

Please sign in to comment.