As tool builder I want to read data of statements on property so that I can use them in my tool.
GET /entities/properties/{property_id}/statements
Notes
- response structure would be similar to the item counterpoint: https://doc.wikimedia.org/Wikibase/master/js/rest-api/#operations-statements-get_entities_items__item_id__statements
- Handle HTTP conditional request headers as in GET /entities/items/{item_id}/statements
- Handle user authentication/authorization like in GET /entities/items/{item_id}/statements
- Allow filtering statements that use a give property, same as a property query parameter in GET /entities/items/{item_id}/statements
Error cases to consider
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>" } |
Possibly useful pointers: