Test API endpoints interactively

To verify API behavior and debug service responses, use the interactive test interface in Red Hat Developer Hub. Validating endpoints directly within the portal ensures they return expected status codes and data models, eliminating the need for external testing tools.

Before you begin

  • You have the required credentials or tokens if the API requires authentication.

Procedure

  1. Navigate to the specific API you must validate and select the Definition tab.
  2. Locate the operation you want to verify and select the header to expand the details.
  3. Click Try it out to enable the interactive input fields.
  4. Enter the required parameters or the request body JSON in the provided fields.
  5. Click Run.
  6. Examine the Server response section to verify the status code, response body, and headers.
    Note

    If you receive 401 (Unauthorized) or 403 (Forbidden) errors, you must verify your credentials with the API owner or check the authorization header requirements in the specification.