Open tzaffi opened 1 year ago
Maybe create a utility to generate a curl -K
config file for the algod?
Maybe create a utility to generate a
curl -K
config file for the algod?
This reminds me of goal completion
so a bit more unwieldy than what I'm proposing. Also, I'm not a curl
expert so am not sure how to make use of such a config or configs. But it does sound like it might provide a more lightweight yet comprehensive approach. Worth further exploration.
I think goal algod get
/ goal algod post
sound like useful dev/devops tools
I think this would be a nice UX improvement - I personally use curl more than goal to call endpoints directly. I think the biggest nuisance is passing in different parameters e.g. in the disassemble endpoint
Found myself wanting this again just now
Enable easier querying of
algod
endpoints directly ingoal
Even though
goal
supports most of the algod endpoints there are certain situations in which a rawHTTP
request to the endpoint is desirable. For example:goal
algod
without any opinionated presentation thatgoal
imposesDevelopers are likely to use a tool such as postman or unix
curl
in these cases (or any of the SDK's of course). However, there is some boilerplate that needs to be taken care of. For example, it's possible to write a script that looks like the following tying all the boilerplate together:Solution
Introduce new
goal GET
andgoal POST
commands that can be called on any of our algod endpoints. For example, if theALGORAND_DATA
env var has been set appropriately we could have:Tasks
Implementation Considerations
An MVP for this wouldn't provide a comprehensive solution to querying all of our endpoints. However, it's worth considering the following questions when implementing:
algokit
as a standard, keep in mind the likely usage via algokit goal and algokit goal console. In particular, this suggests de-prioritizing the problem of sessions since in thealgokit
context, the data directory is already managed for the user.DELETE
verb?algocurl
?goal GET
maybe this should begoal algod GET
and be a subcommand ofgoal algod
(cf. #5374)Dependencies
Implementing sessions via #5376 would aid in the user experience
Urgency
Medium - devs seem to want this once they know of this option