Remove redundant statement endpoints
The following endpoints should be removed, as they are redundant and can be replaced with /api/statements
using appropriate filters (see documentation).
Endpoint | Replacement(s) |
---|---|
/api/statements/subject/{subjectId} | /api/statements?subject_id={subjectId} |
/api/statements/subject/{subjectId}/predicate/{predicateId} | /api/statements?subject_id={subjectId}&predicate_id={predicateId} |
/api/statements/predicate/{predicateId} | /api/statements?predicate_id={predicateId} |
/api/statements/predicate/{predicateId}/literal/{literal} | /api/statements?predicate_id={predicateId}&object_label={literal} |
/api/statements/predicate/{predicateId}/literals | /api/statements?predicate_id={predicateId}&object_classes=Literal |
/api/statements/object/{objectId} | /api/statements?object_id={objectId} |
/api/statements/object/{objectId}/predicate/{predicateId} | /api/statements?object_id={objectId}&predicate_id={predicateId} |
Edited by Marcel Konrad