Description:
As tool builder I want to read data of labels on a property so that I can use them in my tool.
AC:
- Following endpoints are developed:
- GET /entities/properties/{property_id}/labels
- Following error cases have to be considered:
HTTP response code | response payload | |
---|---|---|
Property does not exist | 404 | "code": "property-not-found" "message": "Could not find a property with the ID: {property_id}" |
Invalid property ID | 400 | "code": "invalid-property-id" "message": "Not a valid property ID: <PROPERTY_ID>" "context": { "property-id": "<PROPERTY_ID>" } |
Notes:
- Handle HTTP conditional request headers as in GET /entities/items/{item_id}/labels
- Handle user authentication/authorization like in GET /entities/items/{item_id}/labels
Possibly relevant pointers:
- Suggestion in 2020 Wikibase REST API proposal: https://wmde.github.io/wikibase-rest-api-proposal/
- How Wikibase Action API handles this: https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&props=labels