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

API interface #26

Open
karlmikko opened this issue Aug 13, 2014 · 3 comments
Open

API interface #26

karlmikko opened this issue Aug 13, 2014 · 3 comments

Comments

@karlmikko
Copy link
Collaborator

Proposed API - thoughts/feedback please.

//survey data
POST /api/surveys - create new survey
GET /api/surveys - all surveys
GET /api/surveys/:id - get single survey
PUT /api/surveys/:id - update survey
DELETE /api/surveys/:id - delete survey

//response data
POST /api/surveys/:id/responses - create new survey response
GET /api/surveys/:id/responses - all responses responses
GET /api/surveys/:id/responses/:id - get single response
PUT /api/surveys/:id/responses/:id - update response
DELETE /api/surveys/:id/responses/:id - delete response
@brigand
Copy link
Collaborator

brigand commented Aug 13, 2014

I like it. It's just right. I can make these endpoints tonight.

Do they need tests? Do we want pagination on /api/surveys and /api/surveys/:id/responses ?

@karlmikko
Copy link
Collaborator Author

I don't think we need pagination for this. As if we launch on heroku it the app will die after a period of time and will be reset to defaults quite soon. So the data shouldn't grow to big.

@brigand
Copy link
Collaborator

brigand commented Aug 13, 2014

Okay, cool.

@brigand brigand mentioned this issue Aug 13, 2014
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

No branches or pull requests

2 participants