Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Added Group id #30

Merged
merged 3 commits into from
Feb 9, 2016
Merged

Added Group id #30

merged 3 commits into from
Feb 9, 2016

Conversation

RichardLitt
Copy link
Contributor

I was unable to get &format working. Any ideas?

@RichardLitt
Copy link
Contributor Author

cc @whyrusleeping

<pubkey>: public key
<addrs>: addresses (newline delimited)

## id [GET /id{?arg}{&format}]
Copy link
Contributor

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?

Copy link
Contributor Author

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>"

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daviddias
Copy link
Contributor

Other than the format note, LGTM :)

@RichardLitt
Copy link
Contributor Author

Needs to be checked before #20 can be closed.

@whyrusleeping
Copy link

It looks like format is only used client side to format the json blob we get back.

RichardLitt added a commit that referenced this pull request Feb 9, 2016
@RichardLitt RichardLitt merged commit 9d87018 into master Feb 9, 2016
@RichardLitt RichardLitt deleted the feature/id branch February 9, 2016 19:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants