Unknown macro: {next_previous_link3}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The following are the REST APIs that are implemented in WSO2 DAS 3.1.0.

FunctionREST API
Checking if a table existsGET /analytics/table_exists?table={tableName}
Listing all tablesGET /analytics/tables
Retrieving records of a tableGET /analytics/tables/{tableName}/{from}/{to}/{start}/{count}?columns={columns}
Getting the record count of a tableGET /analytics/tables/{tableName}/recordcount
Searching records of a tablePOST /analytics/search
Defining/updating the schema of a tablePOST /analytics/tables/{tableName}/schema
Getting the search record count of a tablePOST /analytics/search_count
Timing out the indexing process completion GET/analytics/indexing_done?timeout=<long-value>
Getting the schema of a tableGET /analytics/tables/{tableName}/schema
Drilling down through hierarchical categories POST /analytics/facets
Retrieving matching records through a drill down search POST /analytics/drilldown
Retrieving the count of matching records through a drill down search POST/analytics/drillDownScoreCount
Retrieving records using given primary key value pairs POST/analytics/tables/{tableName}/keyed_records
Retrieving All Record StoresGET /analytics/recordstores
Retrieving the Record Store of a Given TableGET /analytics/recordstore?table={tableName}
Checking if the Given Records Store Supports PaginationGET /analytics/pagination/<recordstore-name>
Tracking the Indexing Process Completion of a TableGET /analytics/indexing_done?maxWait=10&table={tableName}
Retrieving Aggregated Values of Given RecordsPOST /analytics/aggregates
Retrieving the Event Count of Range FacetsPOST /analytics/rangecount
Re-indexing the Records of a Given TablePOST /analytics/tables/{tableName}/{from}/{to}
Clear Index Information of a Given Table via REST APIDELETE /analytics/tables/{tableName}/indexData

The REST APIs are secured with basic authentication. Therefore, follow the steps below to add a basic auth header when calling these methods.

  1. Build a string of the form username:password.
  2. Encode the string you created above using Base64. For encoding the above string using Base64, see Encode to Base64 format.
  3. Define an authorization header with the term "Basic_", followed by the encoded string. For example, the basic auth authorization header using "admin" as both username and password is as follows: 
    Authorization: Basic YWRtaW46YWRtaW4=

Cross-Origin Resource Sharing (CORS) should be enabled if you are using analytics REST API from outside the DAS domain, or if the REST API caller is situated in a machine with a different host/port configuration to WSO2 DAS. For more information, see CORS Settings for the Analytics REST API.

  • No labels