SRGSSR / playsrg-playfff

Play Features and Functionalities with Flair, a Play SRG service for Play SRG mobile applications
MIT License
1 stars 0 forks source link

Correct 404 or 401 on APIs instead of 301 #28

Open pyby opened 5 years ago

pyby commented 5 years ago

As an API user, I expect to have the correct 4XX response, instead of a redirect.

How to test: https://[HOST]/api/v2/deeplink/parse_play_url.js -> 404. https://[HOST]/api/v1/deeplink/report -> 403.

pyby commented 5 years ago

36 will fix deeplink API url.

https://[HOST]/api/v[x|/deeplink/parse_play_url.js -> 404. with x > 2. v1 and v2 now available.