Skip to content
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

Feature/add fingerprints #72

Merged
merged 3 commits into from
Jul 28, 2014
Merged

Feature/add fingerprints #72

merged 3 commits into from
Jul 28, 2014

Conversation

bjoerge
Copy link
Member

@bjoerge bjoerge commented Jul 28, 2014

No description provided.

# @path /api/checkpoint/v1/identities/:identity_id/fingerprints
# @example /api/checkpoint/v1/identities/1337/fingerprints
# @http POST
# @required [Array] fingerprints An array of strings to add as fingerprints
Copy link
Member

Choose a reason for hiding this comment

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

Is it obvious to most smart people what an Array is in this instance? Is it fingerprints[]=a&fingerprints[]=b or is it fingerprints=a,b?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is the request payload, so it should not matter if its a JSON-encoded body with {"fingerprints": ["foo", "bar"]} or an url encoded fingerprints[]=foo&fingerprints[]=bar. Since its a POST request it doesn't make much sense to put this in the url anyways.

bjoerge added a commit that referenced this pull request Jul 28, 2014
@bjoerge bjoerge merged commit f6ef856 into master Jul 28, 2014
@bjoerge bjoerge deleted the feature/add-fingerprints branch July 28, 2014 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants