Language Independent API Access

Language Independent API Access demonstration:

 

Prerequisites

  1. Postman – Install Postman from https://www.getpostman.com/
  2. API Token – Generate and Save the API token. Refer Edit User.
  3. Application URL (AssetCloud URL). You must use your own tenant name.
  4. List of APIs.

  1. Request Format – JSON.

Note: POST APIs only support JSON input. Below shown is the sample JSON code.

 

Sending a POST Request

To send a POST Request, follow the steps below:

  1. Launch the Postman Application.
  2. Create New Screen will appear. Click on the Request- Create a basic request link. You can also Click on the New button as shown below:

  1. Save Request Screen will appear.

  1. Enter the Request & Collection details.

  1. Click on the Save to API Public API button.
  2. My Workspace screen will appear. The screen will have a tab – assetInfosearch (Request Name).  

  1. Select the HTTP Method. Choose POST.

  1. Enter Request URL. The Request URL is the combination of your application URL and the API Name.

  1. Click on the Header tab provided in the My Workspace screen.

Warning! Due to increased security measures, the User-Agent record as shown above is mandatory.

  1. Click on the Body tab provided in the My Workspace screen.

Note: Our APIs communicate using http standards with JSON formatted data for input and output. Other data formats are generally not supported.

  1. The Response will appear under Body > Pretty. Click on the Save button. Example – The response will display the search result of assets that have “HP” in it.

  1. On Saving, a message will appear indicating that the “Response is saved in examples and you edited before saving. You can also add anew example with your custom response.”

 

 

Note:

 

 

 

 

 

 

For Example - Error in JSON code. In this case, check if you used correct Json Object ,  Check the selected data format (as the APIs communicate only using http standards with json formatted data for input and output), check server logs to find out the error.

  1. The History tab will store all requests you sent using the POSTMAN application and Collection tab is a group of saved requests. Both History and Collection tab appears on the left-hand side of the Postman application.