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
<table>
<tr>
<th>
</th>
<th>HTTP response code</th>
<th>response payload</th>
</tr>
<tr>
<td>Property does not exist</td>
<td>404</td>
<td>
`"code": "property-not-found"`
`"message": "Could not find a property with the ID: {property_id}"`
</td>
</tr>
<tr>
<td>Invalid property ID</td>
<td>400</td>
<td>
`"code": "invalid-property-id"`
`"message": "Not a valid property ID: {property_id}"`
`"context": "property-id: <PROPERTY_ID>"`
</td>
</tr>
</table>
Possibly useful pointers:
* Suggestion in 2020 Wikibase REST API proposal: ...
* How Wikibase Action API handles this: ...
* Story for initial implementation of the item endpoint: T305988
* Story about filtering statement data on items: T309021