ClassifierApi Resource

POST /classifiers/{id}/classify

For an authenticated user, this method returns the classifications of the posted documents.

 https://ethersource.gavagai.se/ethersource/rest/v2/classifiers/1/classify?apiKey=123
 

Request Parameters
name type description constraints
id path min: 1
Request Body
media type data type
application/json ClassificationRequest (JSON)
Response Body
media type data type description
application/json;charset="UTF-8" (custom) A list of the classifications performed

Example

Request
POST /classifiers/{id}/classify
Content-Type: application/json
Accept: application/json;charset="UTF-8"

                
{
  "texts" : [ {
    "body" : "...",
    "title" : "...",
    "uri" : "..."
  }, {
    "body" : "...",
    "title" : "...",
    "uri" : "..."
  } ],
  "language" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json;charset="UTF-8"

                
...