-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include fields in GET /applicationForms/{id} optionally
Use query parameter `includeFields=true` to include application form fields in the response from `GET /applicationForms/{id}`, otherwise a shallow response with only direct attributes on application form will be returned. The implementation is more akin to the one for /proposals in PR #210. Issue #132 Provide visibility of application form fields
- Loading branch information
Showing
11 changed files
with
313 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ SELECT af.id AS "id", | |
af.version AS "version", | ||
af.created_at AS "createdAt" | ||
FROM application_forms af; | ||
|
13 changes: 0 additions & 13 deletions
13
src/database/queries/applicationForms/selectAllWithFields.sql
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ SELECT af.id AS "id", | |
af.created_at AS "createdAt" | ||
FROM application_forms af | ||
WHERE af.id = :id; | ||
|
14 changes: 0 additions & 14 deletions
14
src/database/queries/applicationForms/selectByIdWithFields.sql
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/handlers/__tests__/applicationFormsHandlers.unit.test.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.