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
- 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}"`
</td>
</tr>
</table>
Possibly useful pointers:
* Suggestion in 2020 Wikibase REST API proposal: ...
* How Wikibase Action API handles this: ...