Skip to content

Feature/formlisting api by formids and added new api for submission listing#98

Merged
shuhaib-aot merged 8 commits intoAOT-Technologies:developfrom
shuhaib-aot:feature/formlisting-api-by-formids
Feb 26, 2025
Merged

Feature/formlisting api by formids and added new api for submission listing#98
shuhaib-aot merged 8 commits intoAOT-Technologies:developfrom
shuhaib-aot:feature/formlisting-api-by-formids

Conversation

@shuhaib-aot
Copy link

@shuhaib-aot shuhaib-aot commented Feb 24, 2025

PR Note

Changes Implemented

🛠 Updated Form Listing API (/form GET API)

  • Removed the admin check.
  • Added access control for each form through a database query.
  • Implemented the formIds query parameter to fetch specific forms by their IDs.

✨ Added New /submissions POST API

  • Allows listing submissions by passing submissionIds in the request body.
  • Ensures access control by verifying form access before returning submissions.

Enhancements: Improved security and flexibility in fetching forms and submissions based on user roles.

@shuhaib-aot shuhaib-aot changed the title Feature/formlisting api by formids Feature/formlisting api by formids and added new api for submission listing Feb 24, 2025
@sonarqubecloud
Copy link

@shuhaib-aot shuhaib-aot merged commit bd9b705 into AOT-Technologies:develop Feb 26, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant