document
v1
GET /api/v1/document/project/{project_pk}/documents/{id}/similar/
Changed onRe-use ProjectDocumentSimilarityListAPIView to get similarities as resource for this API is not Document model, but DocumentSimilarity
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
project_pkstring required
idstring required
A unique integer value identifying this document.
Query parameters
text_max_lengthinteger
document b text max length, 0 to get all text
jq_filtersobject
Filter params similar to JQWidgets grid filter params: filterscount=1, filterdatafield0="a", filtervalue0="b", filtercondition0="CONTAINS", filteroperator0=1, sortdatafied="c", sortorder="asc"
Response
Example response
{
"document_b_name": "document_b_name",
"run_id": "run_id",
"document_a_id": "document_a_id",
"document_b_id": "document_b_id",
"similarity": "similarity",
"document_a_name": "document_a_name",
"document_b_text": "document_b_text"
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking