Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The API gateway api calls and documentation can be accessed one of two ways; the API Gateway web page, or the preconfigured collection from the Postman collection below. The preconfigured collection contains configurations and examples for Authorization and common SharpenDB2 requests.

API Gateway documentation: Sharpen Public API

Postman download: Postman download

While there are many REST API tools available, we recommend Postman. The export below is in Postman json export v2.1

API Gateway Postman export:

...

  1. Using Postman, import the API collection above

    Image Added
  2. Once imported, navigate to the ‘Create New Authentication’ API call under the ‘Authorization setup' folder

  3. Identify the ‘Authorization’ tab once selecting the api from the folder list

  4. Choose ‘Basic Auth’ from the drop down

  5. Enter the credentials of the Sharpen account corresponding with the account you’re interfacing with

  6. Click ‘Send’

  7. Response should look like

...

  1. Identify the ‘Create Table’ request under the ‘SharpenDB2’ folder in the Postman collection

  2. Under the ‘Authorization’ tab, set the ‘Type’ to “No Auth”

  3. Under the ‘Headers’ tab add the following keys (x-api-key and x-api-secret)

  4. Enter the values in correspondence with what was retrieved in the ‘Gathering apiKey and apiSecret’ section of this document

  5. Under the ‘Body’ tab enter your query in JSON format

  6. Click ‘Send’

  7. The request and response should look something like this…

    Image RemovedImage Added

Query

  1. Identify the ‘SharpenDB2 Select’ request under the ‘SharpenDB2’ folder in the Postman collection

  2. Under the ‘Authorization’ tab, set the ‘Type’ to “No Auth”

  3. Under the ‘Headers’ tab add the following keys (x-api-key and x-api-secret)

  4. Enter the values in correspondence with what was retrieved in the ‘Gathering apiKey and apiSecret’ section of this document

  5. Under the ‘Body’ tab enter your query in JSON format

  6. Click ‘Send’

  7. The request and response should look something like this…

...