-
-
Notifications
You must be signed in to change notification settings - Fork 5
Add route for returning a form #20
Copy link
Copy link
Closed
Labels
P1High priority tasks.High priority tasks.area: routeCode that will create a new route on the web application.Code that will create a new route on the web application.
Metadata
Metadata
Assignees
Labels
P1High priority tasks.High priority tasks.area: routeCode that will create a new route on the web application.Code that will create a new route on the web application.
Type
Fields
Give feedbackNo fields configured for issues without a type.
A route should be returning the preferences on a form.
The response should vary slightly dependent on the user requesting.
If the user is unauthenticated or is not an admin then they should only be able to pull forms that are
OPEN. Alongside that we should not return the internal preferences such as the Discord webhook URL returned for sending new responses (#15).If the user is authenticated and an admin we should return the whole response object, even if the form is not open, to allow for admins to edit forms.
The route should look like
/forms/{form_id}.