Test an API

Updated at:

You can test an Application Programming Interface (API) locally to view its results and verify that it works as expected. The testing procedures are similar for DataService Studio APIs, data reporting APIs, third-party APIs, spatial service APIs, . This topic uses a DataService Studio API as an example to demonstrate how to test an API.

Prerequisites

An API of one of the following types has been created. For more information, see:

Procedure

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner of the page, click the 导航图标 icon and select Collaboration.

  3. In the top menu bar, click the 选择工作组 icon, select the target workspace, and then click Asset Processing.

  4. In the navigation pane on the left, click the API icon and choose API Development > DataService Studio API.

  5. On the DataService Studio API page, click Test in the Actions column of the target API.

  6. On the Test page, in the Request Parameters section, configure the default values for the request parameters.

  7. Click Start Test. Verify that the returned content is correct, and then click Back.