DocStatsApi Resource

POST /docstats

For an authenticated user, this method returns all topics in the posted texts

 https://ethersource.gavagai.se/ethersource/rest/v2/docstats?apiKey=123ok
 

Request Body
media type data type description
application/json DocsStatsContext (JSON) the input json with all texts
Response Body
media type data type description
application/json;charset=UTF-8 (custom) A json containing the available topics in the provided texts

Example

Request
POST /docstats
Content-Type: application/json
Accept: application/json;charset=UTF-8

                
{
  "texts" : [ {
    "body" : "...",
    "title" : "...",
    "id" : "..."
  }, {
    "body" : "...",
    "title" : "...",
    "id" : "..."
  } ],
  "synonyms" : [ ],
  "significantTerms" : 12345,
  "ignore" : [ "...", "..." ],
  "language" : "...",
  "maxAssociations" : 12345,
  "autoMergeSuggestions" : true,
  "generateDocumentNGrams" : true
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json;charset=UTF-8

                
...