-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
LCD REST-server API #383
Comments
please consider error handling luniehq/lunie#445 |
Specifically, we need |
thanks for the clarifcation @mappum ! |
https://app.swaggerhub.com/apis/faboweb1/Cosmos-LCD/1.0.0-oas3 A first version of the API spec is done. Feedback (this week) would be highly appreciated. |
Thanks Fabo! Some thoughts:
Otherwise this looks like a great start! |
This shouldn't create a key. This should just generate a seed phrase like mentioned here #301 .
yeah, makes things sooo much easier
I renamed /account to /balances so POST /balances/address feels more natural. I will change this to /accounts so this fits more in the rest of the company naming.
In REST you usually use plurals for resource naming. As the top resource is a collection of several entities. I.e.: /blocks is the resource of all blocks even if we will never query all of them. We send select one entity out of this resource with the second argument => /blocks/latest
I forgot this one. Will add it ASAP! Finally: Thank you for the incredibly fast feedback! 🚀 🎆 |
|
Right. Can you walk me through what happens? User clicks
Maybe we should make a set of tx endpoints so this is clearer - eg.
Ok!
Note if you get the full account, the nonce is included in it, so you shouldnt need the extra |
Left a comment in #301.
I am open to
I probably do it wrong, but the current output doesn't show me the nonce: |
Changed |
Currently I dont think the full account is returned. We'd need to change that to actually return the whole thing, and then itd include the nonce too |
Nice work @faboweb 👍 I like the idea of combining the tx building/signing/sending for convenience. I'd like to be able to atomically do multiple bonds and unbonds in one operation, and I'm not sure how the API would work for that (BTW this was not possible in the previous API, it's just something that would be nice to have). I prefer "verb" actions like SendTx to be less RESTful and be named something like Overall I approve, it's more organized/consistent than the previous endpoints. |
As recommended by Matt I:
And I:
|
What's the difference between |
I would designed |
If the intention of If the intention is just for SendTx, then |
Good point. Changed the endpoint to |
@faboweb how does the swagger hub link work ? can we have real-time links for master and develop ? |
This is apparently possible, but I would need to downgrade the spec to version 2 of OpenAPI. Version 3 is not available for all the plugins. I will create an issue. |
Thanks. Let's close this. Changes to spec are new issues/PRs. |
fix: disable sims workflow
How should the LCD REST-server be structured? This is a first proposal. I will add a full OpenAPI definition later.
Resources:
Version - Version of local code
Status - Status of the connected node
Keys - Locally stored keys
Accounts - Nonce and balances on the blockchain
Blocks - All blocks in the blockchain
ValidatorSets - Sets of validators at a block-height
TXs - All TXs in the blockchain
Online spec viewer:
https://app.swaggerhub.com/apis/faboweb1/Cosmos-LCD/1.0.0-oas3
The text was updated successfully, but these errors were encountered: