...
The API gateway api calls and documentation can be accessed one of two ways; the API Gateway web page, or the preconfigured collection within from the SharpenCare Postman workspace.collection below
API Gateway documentation: Sharpen Public API
Postman download: Postman download
API Gateway Postman export: Postman download
View file | ||
---|---|---|
|
...
Using Postman, import the API collection above
Once imported, navigate to the “Create ‘Create New Authentication” Authentication’ API call under the ‘Authorization setup' folder
Identify the ‘Authorization’ tab once selecting the api from the folder list
Choose ‘Basic Auth’ from the drop down
Enter the credentials of the Sharpen account corresponding with the account you’re interfacing with
Click ‘Send’
Response should look like
...
Gathering apiKey and apiSecret
Navigate to the Create ‘Create API Key Key’ api call under the ‘Authorization Setup’ folder within the imported Postman collection.
Click the ‘Authorization’ tab and choose ‘Bearer Token’.
Insert the token gathered in step 7 of “Gathering your JWT” here
Navigate to the ‘Body’ tab
If you want an expiration on the token, update the date/time to the proper expiration time. If you do not want an expiration, modify the body to look like this.
Click ‘Send’
The return should look like this
...
Identify the ‘Create Table’ request under the ‘SharpenDB2’ folder in the Postman collection
Under the ‘Authorization’ tab, set the ‘Type’ to “No Auth”
Under the ‘Headers’ tab add the following keys (
x-api-key
andx-api-secret
)Enter the values in correspondence with what was retrieved in the ‘Gathering apiKey and apiSecret’ section of this document
Under the ‘Body’ tab enter your query in JSON format
Click ‘Send’
The request and response should look something like this…
Query
Identify the ‘SharpenDB2 Select’ request under the ‘SharpenDB2’ folder in the Postman collection
Under the ‘Authorization’ tab, set the ‘Type’ to “No Auth”
Under the ‘Headers’ tab add the following keys (
x-api-key
andx-api-secret
)Enter the values in correspondence with what was retrieved in the ‘Gathering apiKey and apiSecret’ section of this document
Under the ‘Body’ tab enter your query in JSON format
Click ‘Send’
The request and response should look something like this…
...