IEEE-VIT / enigma7-backend

Code repository for the backend of Enigma 7.0
https://enigma-api.ieeevit.org
MIT License
3 stars 0 forks source link

need hint after hint is used. #41

Closed aaryankotharii closed 4 years ago

aaryankotharii commented 4 years ago

URL: https://enigma7-backend.herokuapp.com/api/v1/game/powerup/hint/

Response body:

{
    detail = "You have already taken a hint .";
}

Is your feature request related to a problem? Please describe. let say the user uses the hint on the enigmas web app. now he/she switches to the the mobile app to play and fetches the hint. the user will get the response that hint is used but won't get the hint.

Describe the solution you'd like if hint is already used for a question, send the hint is the response regardless but don't reduce xp again.

Describe alternatives you've considered N/A

Additional context N/A

aryanshridhar commented 4 years ago

Good Catch ! , Will fix this sooner

aryan9600 commented 4 years ago

I dont think that is the case, the endpoint /hint always returns the hint, regardless of whether it has been used before or not. Please confirm @aryanshridhar

aaryankotharii commented 4 years ago

@aryan9600 yes I suppose /hint gives the hint regardless but /powerup/hint does not.

aryanshridhar commented 4 years ago

Yes , its the case with /powerup/hint only .