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 DocsStatsResponse (JSON) A json containing the available topics in the provided texts

Example

Request
POST /docstats
Content-Type: application/json
Accept: application/json

                
{
  "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

                
{
  "topics" : [ {
    "keywords" : [ "...", "..." ],
    "textGroups" : [ {
      "associations" : [ "...", "..." ],
      "texts" : { },
      "numberOfTexts" : 12345
    }, {
      "associations" : [ "...", "..." ],
      "texts" : { },
      "numberOfTexts" : 12345
    } ],
    "documentFrequency" : 12345
  }, {
    "keywords" : [ "...", "..." ],
    "textGroups" : [ {
      "associations" : [ "...", "..." ],
      "texts" : { },
      "numberOfTexts" : 12345
    }, {
      "associations" : [ "...", "..." ],
      "texts" : { },
      "numberOfTexts" : 12345
    } ],
    "documentFrequency" : 12345
  } ],
  "keywordSimilarTerms" : { },
  "options" : { },
  "numberOfTexts" : 12345,
  "documentNGrams" : { }
}