-
Notifications
You must be signed in to change notification settings - Fork 18
Conversation
<pubkey>: public key | ||
<addrs>: addresses (newline delimited) | ||
|
||
## id [GET /id{?arg}{&format}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better if the format is something that the cli understand and transforms the json coming from the API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH, I can't get the format
tag working at all!
Example that should work:
curl -i -X POST http://localhost:5001/api/v0/id?arg=QmepgFW7BHEtU4pZJdxaNiv75mKLLRQnPi1KaaXmQN4V1a&format="<addrs>"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@whyrusleeping is the format really part of the API? It should be just the cli that prints out depending on the requested format, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @whyrusleeping
Other than the |
Needs to be checked before #20 can be closed. |
It looks like format is only used client side to format the json blob we get back. |
I was unable to get
&format
working. Any ideas?