Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoint to serve all FT balances and native NEAR balance together #53

Open
telezhnaya opened this issue Dec 15, 2022 · 0 comments
Open

Comments

@telezhnaya
Copy link
Contributor

We dropped the "Coins" category, now we have "NEAR" and "FT". We no longer have the endpoint to have all the available balances, the users have to have 2 requests, one for native NEAR balance, and one for FT balances.
I want to return such an endpoint back.

The hardest part here is to design the tags so that Swagger can show the endpoints in a logical way.

Ideally, I want to have nested tags with the following structure:

Balances:
    FT:
        ...
    NFT:
        ...
    NEAR:
       ...
    get_balances() <- new endpoint in the root of the tag
Transactions:
    ...

Now the tags are flat, it looks this way:
Screenshot 2022-12-15 at 11 18 56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant