-
Notifications
You must be signed in to change notification settings - Fork 98
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
Reorganize API endpoints and deprecate current endpoints #2079
Comments
I do not think we need this, either we have permissions on that form -> get all information, or we do not have (e.g. just shared for submit) -> get only partial |
Or maybe same as creating a new and POST |
But more important: Do we want logical nesting?
I personally think it makes sense for forms, as we always need to query the form to check access to question / option etc. But I am not sure about shares, because they are also bound to forms, like:
But we also need |
What about having both? |
Would work for me :) |
I've updated the tables with the proposed new routes :) |
Do we want to split our API requests and deliver only the forms when you query |
Based on the comment by @susnux, here's the proposal on how to reorganize our API endpoints:
Forms endpoints
/forms
/forms[?type=owned]
/shared_forms
/forms?type=shared
/form
/forms
/form/:id:
/forms/:form-id:
/partial_form/:hash:
/forms/0?hash=:form-hash:
/form/clone/:id:
/forms?fromId=:form-id:
/form/update
/forms/:form-id:
/form/transfer
/form/:id:
/forms/:form-id:
/form/link/:fileformat:
/form/unlink
Questions endpoints
/forms/:form-id:/questions
/forms/:form-id:/questions/:question-id:
/question
/forms/:form-id:/questions
/question
/forms/:form-id:/questions/:question-id:
/question/reorder
/forms/:form-id:/questions
/question/clone/:id:
/forms/:form-id:/questions/:question-id:/clone
/question/:id:
/forms/:form-id:/questions/:question-id:
Options endpoints
/forms/:form-id:/questions/:question-id:/options
/forms/:form-id:/questions/:question-id:/options/:option-id:
/option
/forms/:form-id:/questions/:question-id:/options
/option/update
/forms/:form-id:/questions/:question-id:/options/:option-id:
/forms/:form-id:/questions/:question-id:/options
/forms/:form-id:/questions/:question-id:/options/:option-id:/clone
/option/:id:
/forms/:form-id:/questions/:question-id:/options/:option-id:
Sharing endpoints
/shares
/forms/:form-id:/shares
/forms/:form-id:/shares/:share-id:
/share
/forms/:form-id:/shares
/share/update
/forms/:form-id:/shares/:share-id:
/share/:id:
/forms/:form-id:/shares/:id:
Submission endpoints
/forms/:form-id:/submissions
/forms/:form-id:/submissions/:submission-id:
/submissions/export/:formhash:?:fileformat:
/forms/:form-id:/submissions?fileFormat=:file-format:
/submissions/export
/forms/:form-id:/submissions/export
/submission/insert
/forms/:form-id:/submissions
/forms/:form-id:/submissions/:id:
/submissions/:formid:
/forms/:form-id:/submissions
/submission/:id:
/forms/:form-id:/submissions/:submission-id:
/uploadFiles/:form-id:/:question-id:
/forms/:form-id:/submissions/files/:question-id:
The text was updated successfully, but these errors were encountered: