Skip to content
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

New feature request: Retrieve previous Submissions by user #120

Open
leoraba opened this issue Dec 4, 2024 · 1 comment
Open

New feature request: Retrieve previous Submissions by user #120

leoraba opened this issue Dec 4, 2024 · 1 comment
Assignees

Comments

@leoraba
Copy link
Contributor

leoraba commented Dec 4, 2024

Summary of request

Have the ability to retrieve previous submissions from current user.

Desired solution

Be able to reuse one or all of the existing GET submission endpoints with additional/optional query parameter to return the current Active Submission or all previous ones.

Details:

Having the existing GET submission Endpoints:

  1. GET /submission/{submissionId}
  2. GET /submission/category/{categoryId}
  3. GET /submission/category/{categoryId}/organization/{organization}

Endpoint 1

Current behaviour: Returns the Submission only if the status is active.
Expected: Return Submission regardless of its status.

Endpoint 2:

Current behaviour: Returns the Submission that is active in this category/organization.
Expected:

  • Returns the Submission regardless of its status.
  • A new optional query param: onlyActive of type boolean. Default false.
    • If no query parameter is sent, by default return the submission/submissions regardless of the submission status;
    • If query parameter is sent, return only the submission with active status.
  • Pagination functionality
  • Add organization as query parameter.

Endpoint 3:

Move to deprecated endpoint, as new enhancements of endpoint #2 now fulfills this requirement

@leoraba
Copy link
Contributor Author

leoraba commented Dec 5, 2024

Note: Add and optional query parameter to filter by user. This requirement might not be required if auth is implemented.

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

No branches or pull requests

1 participant