Skip to content

Add route for returning a form #20

@jb3

Description

@jb3

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}.

Metadata

Metadata

Assignees

Labels

P1High priority tasks.area: routeCode that will create a new route on the web application.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions