JeroenDeDauw / QueryrAPI

🖹 REST API for Wikibase data
https://wikibase.consulting
7 stars 0 forks source link

Determine /label and /description behaviour for no such term #14

Open JeroenDeDauw opened 8 years ago

JeroenDeDauw commented 8 years ago

What should the items/$id/label and properties/$id/label endpoints return when there is no label in the requested language? (Currently that can only be English.)

The current behaviour is returning a 404

JeroenDeDauw commented 8 years ago

In case a 404 should not be provided, what should happen when the entity itself does not exist when such an endpoint is hit? This information is not available in the current code - it'll just know there is no label, and not if this is caused by absence of the entity or not. So it's extra work to do such a check, though the consistency might be worth it. (This is what GH does: https://api.github.com/users/JeroenDeDauwOfDoom/followers)