Classifications
TestingGET
/v1/jahannama/classifications/{search_doc_id}Last modified: 3 months ago
Maintainer: Not configured
Receives an item id as a URL parameter and returns the classified types or categories, ordered by relevance. The response includes the last update time of the classification.
Request
Path Params
search_doc_id
string
required
the search result document id
Example:
doctor_page_52e17ae5d6f3a397634923155eb4e43c
Request samples
Responses
Successful classification of the item(200)
Invalid request - item slug is missing or incorrect(400)
Item not found(404)
Server error(500)
Service Unavailable(503)
Successful classification of the item
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
doc-id
string
required
The unique identifier or slug of the resource.
classifications
array [object {2}]
required
List of classifications with their IDs and names.
id
string
required
The unique identifier for the classification.
name
string
required
The name of the classification.
lastUpdated
string <date-time>
required
The timestamp of the last update.
Example
{
"doc-id": "string",
"classifications": [
{
"id": "string",
"name": "string"
}
],
"lastUpdated": "2019-08-24T14:15:22.123Z"
}
Last modified: 3 months ago