When you have finished configuring your API, Scheer PAS API Management allows you to test your implemented configurations.
There are slight differences between the testing of a public API and the testing of a private API:
While testing, you can check if the API is invokable. If you have configured policies for an API, you can also check if these policies are applied correctly.
To test an API with API Management, you need to provide an API definition in Swagger format. For more information on API definitions, refer to API Settings > API Definition.
If the API has been imported from the PAS Administration, the definition file should have been added automatically. |
If you have added policies to your API setup, you may have to add some information to the API definition file, e.g. regarding tokens that need to be supplied.
The process of testing itself is the same regarding public and private APIs.
For each published API, option Try! is enabled in tab Overview. Click it to open the test interface. | |
If your API is public, you are redirected to the test page (see below) in the API Developer Portal. |
If your API is private, you are redirected to tab Contracts because various contracts can exists for a private API. In the list of active contracts you can now choose the one you want to test: Simply click Try! to open the test interface.
You are redirected to the corresponding test page (see below) in the API Developer Portal. |
You can use the test page (Swagger UI) to make test calls to your service. Open the method you want to test and click Execute.
| ||
You can also use the API Developer Portal to access the Swagger UI and make your test calls (refer to chapter Developer Portal for further information). Click API Documentation on an API tile... | ||
...or on the details page of an API. |