docs: rename swagger to openapi (#5263)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Marko
2020-08-21 11:40:28 +02:00
committed by GitHub
co-authored by mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent b7f6e47a42
commit 9b4f1a8081
7 changed files with 1479 additions and 1794 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ includes its continuous integration status using a badge in the `README.md`.
### RPC Testing
If you contribute to the RPC endpoints it's important to document your changes in the [Swagger file](./rpc/swagger/swagger.yaml)
If you contribute to the RPC endpoints it's important to document your changes in the [Openapi file](./rpc/openapi/openapi.yaml)
To test your changes you should install `nodejs` and run:
```bash
+1 -1
View File
@@ -22,7 +22,7 @@ func main() {
// We need a proper example of path and data
strings.HasPrefix(t.Name, "ABCI > /abci_query") ||
// We need to find a way to make a transaction before starting the tests,
// that hash should replace the dummy one in hte swagger file
// that hash should replace the dummy one in the openapi file
strings.HasPrefix(t.Name, "Info > /tx") {
t.Skip = true
fmt.Printf("%s Has been skipped\n", t.Name)
+2 -2
View File
@@ -1,4 +1,4 @@
#!/bin/bash
cp -a ../rpc/swagger/ .vuepress/public/rpc/
git clone https://github.com/tendermint/spec.git specRepo && cp -r specRepo/spec . && rm -rf specRepo
cp -a ../rpc/openapi/ .vuepress/public/rpc/
git clone https://github.com/tendermint/spec.git specRepo && cp -r specRepo/spec . && rm -rf specRepo
+1 -1
View File
@@ -29,5 +29,5 @@ hooks-worker-handler-host: 127.0.0.1
hooks-worker-handler-port: 61321
config: ./dredd.yml
# This path accepts no variables
blueprint: ./rpc/swagger/swagger.yaml
blueprint: ./rpc/openapi/openapi.yaml
endpoint: "http://127.0.0.1:26657/"
+2 -2
View File
@@ -1,4 +1,4 @@
# Swagger docs
# Openapi docs
Do not forget to update ../swagger/swagger.yaml if making changes to any
Do not forget to update ../openapi/openapi.yaml if making changes to any
endpoint.
@@ -15,7 +15,7 @@
<script>
window.onload = function () {
window.ui = SwaggerUIBundle({
url: "./swagger.yaml",
url: "./openapi.yaml",
dom_id: '#swagger-ui',
deepLinking: true,
layout: "BaseLayout"
File diff suppressed because it is too large Load Diff