Table of Contents

  1. Introduction to API Manager
  2. Administration
  3. Organization policies
  4. Analytics

API Manager Guide

API Manager Guide

Interactively Testing a Managed API

Interactively Testing a Managed API

You can interactively test a managed API created for a REST API in a Swagger interface. You can view the API URL, the HTTP status codes, the request parameters, and the response parameters. You can also execute the API for testing purposes, or get a sample cURL command.
  1. In the API Registry page, click to select a managed API, or click to open the Actions menu and select View API Details.
    The API details window appears.
  2. Select the Swagger tab.
  3. If the API requires authentication, the Authorization dialog box appears. Enter the username and password of a user who is authorized to access the API.
  4. To expand the view in the Swagger tab, click the arrows in the upper right corner.
  5. To view the API request body and response codes, click any button that displays an API method.
    For example, for an API with a POST method, a POST button is displayed. Click the POST button to view the API request body.
  6. To view the request body in JSON format, select application/json. To view the request body in XML format, select application/xml.
  7. To test the API semantics, in the request body panel, perform the following steps:
    1. Click Try it out.
    2. Edit the request body. Replace any parameter type with a value.
    3. To test the updated request body, click Execute.
      The Server response panel displays the response body, response headers, and request duration time.
    4. To clear the server response, click Clear.
    5. To cancel the request body changes, click Cancel. To change the request body again, click Edit.
  8. To view the request or response syntax, in the Models panel, click the right arrow near the request or response entry.
    The model request or response body is displayed. A red asterisk next to an element indicates a required element.


Updated September 11, 2019


Explore Informatica Network