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

Signup API endpoint#3577

Merged
aaronschachter merged 3 commits intoDoSomethingArchive:devfrom
aaronschachter:signup_endpoint
Dec 2, 2014
Merged

Signup API endpoint#3577
aaronschachter merged 3 commits intoDoSomethingArchive:devfrom
aaronschachter:signup_endpoint

Conversation

@aaronschachter
Copy link
Contributor

Enables the campaigns/[nid]/endpoint and allows uid and source to be passed as Signup properties.

Adds new permission edit any signup which is checked when a request is made when the uid does not match the logged in user's uid.

POST /api/v1/campaigns/1273/signup HTTP/1.1
Host: dev.dosomething.org:8888
Content-Type: application/json
Accept: application/json
X-CSRF-Token: efkrSDe0fJg6sqseLcIVv7XFxTRb3npxmHFrapRru6U
Cache-Control: no-cache

{ "uid": 15, "source": "api jam" } 

Response: Signup sid, if success.

[
    "1307"
]

@sergiitk
Copy link
Contributor

sergiitk commented Dec 2, 2014

👍

aaronschachter added a commit that referenced this pull request Dec 2, 2014
@aaronschachter aaronschachter merged commit 23ef5fd into DoSomethingArchive:dev Dec 2, 2014
@aaronschachter aaronschachter deleted the signup_endpoint branch December 2, 2014 14:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants