-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Notification API should always return a JSON object with the current count of notifications #10059
Notification API should always return a JSON object with the current count of notifications #10059
Conversation
@zeripath your PR introduced a formation error - but CI passed ?!? ... anywai here it corectes it ... :) |
Codecov Report
@@ Coverage Diff @@
## master #10059 +/- ##
==========================================
+ Coverage 43.46% 43.48% +0.01%
==========================================
Files 597 597
Lines 84713 84704 -9
==========================================
+ Hits 36824 36831 +7
+ Misses 43348 43333 -15
+ Partials 4541 4540 -1
Continue to review full report at Codecov.
|
from discord: |
I think you have to change the status code if you're going to return content. |
@zeripath I like to keep the abilety to check if you have unread notify. on the statusCode |
5f2a1a9
to
95b13e3
Compare
Reason For reopen: I was reasently asked If I can change this, since it would be mouch easyer to use ... |
95b13e3
to
948b007
Compare
to witch one? https://httpstatuses.com/ I still think 204 is the closesd match |
f3f4ee2
to
533f52a
Compare
ping lgmt |
* BEAKING: check return status based on struct not httpStatus * update Tests * CI.restart()
it makes it way more easyer for clients if there is always a json they can parse if they like ...
or just check the http Status ...
also included: smal code format