Improve swagger doc

This commit is contained in:
Arnau B
2020-11-26 10:15:02 +01:00
parent 0c83417881
commit 5991752e30
9 changed files with 260 additions and 147 deletions

View File

@@ -93,7 +93,8 @@ func TestGetTokens(t *testing.T) {
// Get by name
fetchedTokens = []historydb.TokenWithUSD{}
limit = 5
stringName := tc.tokens[8].Name[4:5]
tokenNameLen := len(tc.tokens[8].Name)
stringName := tc.tokens[8].Name[tokenNameLen-1:]
path = fmt.Sprintf(
"%s?name=%s&limit=%d&fromItem=",
endpoint, stringName, limit,