-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #410 from akash-network/docs/add-cosmos-sdk-47-api…
…-test-doc docs(website): add documentation for Cosmos SDK 47 upgrade and API en…
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
src/content/Docs/other-resources/testnet-5-api-verifications/index.md
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
categories: ["Other Resources"] | ||
tags: [] | ||
weight: 2 | ||
title: "Testnet 5 API Verifications" | ||
linkTitle: "Testnet 5 API Verifications" | ||
--- | ||
|
||
# Akash Cosmos SDK 0.47.0 Upgrade Testnet | ||
|
||
|
||
## Akash REST API Testing Overview | ||
|
||
The testing procedure for the REST API is rather simple and should be conducted as follows: | ||
|
||
|
||
|
||
* Retrieve the current API swagger file [here](https://github.com/akash-network/akash-api/blob/main/docs/swagger-ui/swagger.yaml) | ||
* Dump the contents of the file into a swagger rendering engine such as this [web app](https://editor.swagger.io/) | ||
* Thoroughly test both Akash and Cosmos exposed endpoints | ||
* NOTE - all Akash queries must be updated to use `v1beta4` - see example below | ||
* Current testnet-5 API node is available [here](https://github.com/akash-network/net/blob/main/testnet-5/api-nodes.txt) | ||
|
||
|
||
## Akash REST API Test Example | ||
|
||
|
||
|
||
* Specific endpoint used in test: | ||
|
||
``` | ||
/akash/deployment/v1beta4/deployments/list | ||
``` | ||
|
||
|
||
* Example test | ||
|
||
``` | ||
curl "http://api.akashtestnet.xyz:1317/akash/deployment/v1beta4/deployments/list?filters.owner=akash1p6fulzhjcsghakuracwn20tjqmvf7zvsclf6yw" | ||
``` | ||
|
||
|
||
|
||
|
||
## Cosmos REST API Test Example | ||
|
||
|
||
|
||
* Specific endpoint used in test: | ||
|
||
``` | ||
/cosmos/bank/v1beta1/balances/{address} | ||
``` | ||
|
||
|
||
* Example test | ||
|
||
``` | ||
curl "http://api.akashtestnet.xyz:1317/cosmos/bank/v1beta1/balances/akash1p6fulzhjcsghakuracwn20tjqmvf7zvsclf6yw" | ||
``` |