-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Rename Gaia-lite endpoints to be more RESTful #1979
Comments
Thank you, Fede. If we're going to do some renaming then please, PLEASE, for the love of God rename |
💯 % |
All of this! How do people feel about txs vs transactions? |
@NodeGuy @jackzampolin I'm down as long as we rename all the |
I kinda like |
I actually like |
Actually, |
would hate for |
Why would you confuse it with either of those? Neither is a likely endpoint in a blockchain-related API. |
sorry, i was being facetious. but in general, i do think using the full word as @NodeGuy suggested is the right choice. |
What is it that you guys like about |
I personally like |
I think |
I prefer I think the original proposal is a great idea, and we should go through with it. (From what I understand from the above comments, no one actually has a problem with the original issue, and there was only agreement or a lack of opinion on it) I'm unclear on the actual ICS numbers we've reserved, so I assume what you've suggested follows the most up to date plan for the numbering. |
Note: Updating
|
@fedekunze that would require an issue to be opened on |
Note: added renaming suggestion for |
@fedekunze wrt |
#1305 has concluded in favor of "jailed", with "penalty" as a higher-level UX concept. |
Going to go ahead and close this as we have addressed this in a number of different PRs. |
Summary
Rename some of the ICS/Gaia-lite/LCD endpoints to better describe what they do and be more RESTful.
CC: @cosmos/cosmos-ui @jackzampolin
Problem Definition
Same as above.
Proposal
ICS0 - TendermintAPI
POST /broadcast_tx_sync
-->POST /txs
body: {return: sync
,...items
}POST /broadcast_tx_async
-->POST /txs
body: {return: async
,...items
}POST /broadcast_tx_commit
-->POST /txs
body: {return: block
,...items
}ICS1 - KeyAPI
POST /keys/create
-->POST /keys
POST /keys/recover
-->POST /keys/{name}/recover
ICS20 - TokenAPI
POST /bank/create_transfer
-->POST /bank/transfers
Other
GET /accounts/{address}
-->GET /auth/accounts/{address}
POST /ibc/{destchain}/{address}/send
-->POST /ibc/txs
GET /slashing/signing_info/{validatorPubKey}
-->GET /slashing/validator/{validatorAddr}/signing-info
POST /slashing/unjail
-->POST /slashing/validator/{validatorAddr}/unjail
For Admin Use
The text was updated successfully, but these errors were encountered: