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

Enrollment (and content) endpoints should not 404 when no enrollments (or content) can be found #180

Open
5 tasks
thomasplevy opened this issue Jul 2, 2020 · 3 comments
Assignees
Labels

Comments

@thomasplevy
Copy link
Contributor

thomasplevy commented Jul 2, 2020

Mmm well no to me it meant that the enrollments did not exist, so it's my wrong understanding of the specs: BUG.
Maybe the spec could be more "complete" if they said what was the actual resource that couldn't be found.

I did the same with:

  • membership enrollments
  • course enrollments
  • section content
  • course content

they must be fixed then! Sorry!

Originally posted by @eri-trabiccolo in #178 (comment)

See related #178

The following endpoints must be updated to respond with a 200 (not a 404) when no enrollments (or content) are found:

  • GET /memberships/{id}/enrollments

  • GET /courses/{id}/enrollments

  • GET /courses/{id}/content

  • GET /sections/{id}/content

  • The spec (for all endpoints) should be updated to note that the "resource" that is not found by the 404 is the course, membership, etc... and not the list enrollments

@thomasplevy thomasplevy changed the title Mmm well no to me it meant that the enrollments did not exist, so it's my wrong understanding of the specs: BUG. Enrollment (and content) endpoints should not 404 when no enrollments (or content) can be found Jul 2, 2020
@eri-trabiccolo
Copy link
Contributor

related, but maybe they worth another ticket:

we never return a 404 here, we always return a validation error as the post_id was wrong:
https://github.com/gocodebox/lifterlms-rest/blob/1.0.0-beta.14/includes/server/class-llms-rest-students-progress-controller.php#L528

@thomasplevy
Copy link
Contributor Author

@thomasplevy thomasplevy moved this to Awaiting Triage in Development Apr 21, 2022
@thomasplevy thomasplevy moved this from Awaiting Triage to Backlog in Development Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

2 participants