Skip to content

Commit

Permalink
Merge pull request #410 from akash-network/docs/add-cosmos-sdk-47-api…
Browse files Browse the repository at this point in the history
…-test-doc

docs(website): add documentation for Cosmos SDK 47 upgrade and API en…
  • Loading branch information
chainzero authored Nov 11, 2024
2 parents 472cc0e + 2cdb749 commit 7f3d2a3
Showing 1 changed file with 60 additions and 0 deletions.
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"
```

0 comments on commit 7f3d2a3

Please sign in to comment.