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

Return 200 with empty array when there are no comments #301 #565

Merged
merged 2 commits into from Sep 30, 2019
Merged

Return 200 with empty array when there are no comments #301 #565

merged 2 commits into from Sep 30, 2019

Conversation

tdro
Copy link
Contributor

@tdro tdro commented Aug 11, 2019

For some of us who are picky about 404s, the API returns 404 when there are no comments. The not found exception was removed and the endpoint returns empty as expected with HTTP status 200.

{"id": null, "total_replies": 0, "hidden_replies": 0, "replies": []}

{"id": null, "total_replies": 0, "hidden_replies": 0, "replies": []}
@jelmer
Copy link
Member

jelmer commented Sep 28, 2019

Please also update the tests.

@jelmer jelmer merged commit f4b0376 into isso-comments:master Sep 30, 2019
ix5 added a commit to ix5/isso that referenced this pull request Jan 17, 2021
Isso returns 200 instead of 404 since
isso-comments#565
ix5 added a commit to ix5/isso that referenced this pull request Jan 19, 2021
Isso returns 200 instead of 404 since
isso-comments#565
@ix5 ix5 mentioned this pull request Dec 26, 2021
ix5 added a commit to ix5/isso that referenced this pull request May 25, 2022
Isso returns a JSON response with `total_replies=0` instead
of a 404 since version 0.12.3 (see troubleshooting, PR isso-comments#565)
@ix5 ix5 mentioned this pull request May 25, 2022
5 tasks
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.

None yet

2 participants