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

Misleading error message for missing rating #35

Open
mikaelsvensson opened this issue Jan 14, 2015 · 0 comments
Open

Misleading error message for missing rating #35

mikaelsvensson opened this issue Jan 14, 2015 · 0 comments

Comments

@mikaelsvensson
Copy link

Om man gör GET för en aktivitets betyg och aktuell användare inte satt något betyg så returnerar 404 Not Found, vilket är lite missvisande eftersom aktiviteten mycket väl kan existera även om aktuell användare inte betygsatt den.

Aktuellt beteende:
GET http://devscout.mikaelsvensson.info:10081/api/v1/activities/1/rating HTTP/1.1

HTTP/1.1 404 Not Found
{"error":"The requested object does not exist.","details":"ActiveRecord::RecordNotFound"}

Önskat beteende:
Antingen returneras rating=null eller "No Content-svar".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant