Skip to main content

Quick Start Guide

In the API Control Plane, you can expose an existing HTTP backend through a gateway by creating a REST API proxy. When you start from scratch, you provide a backend URL, and the console generates the initial API details for you. You can then review the API definition, deploy the API to a gateway, test it, and publish it to the API Portal and AI Hub.

This guide uses the sample Reading List API backend.

Prerequisites​

  1. Sign in to the API Control Plane Console.

  2. Create an organization:

    1. Enter a Display name.
    2. Enter a Handle.
    3. Click Create.

    If you already have an organization, open it and continue.

  3. Open the default project if your organization has one, or create a project:

    1. In the left navigation menu, click Projects, then click Create Project.
    2. Enter a Name and a Project ID. Description is optional.
    3. Click Create.

    The project home page opens. Continue from there to create the API.

Create the REST API​

  1. On the project home page, click Create API.

    Project home page with the Create API button

  2. Select REST API, then click Continue.

  3. Select Start from scratch.

  4. Under Backend endpoint, enter your backend URL in Endpoint URL. To use the sample Reading List API, click Try with Sample URL.

    The sample URL is:

    https://apis.bijira.dev/samples/reading-list-api-service/v1.0/books
  5. Click Continue.

  6. On Configure and create, review Basic information and Backend endpoint. The console fills Name with Untitled API, and derives Identifier and Context from the name.

    For this sample, set Name to Reading List API. The identifier becomes reading-list-api, and the context includes your project identifier, for example /default/reading-list-api/v1.0.0.

    FieldValue
    NameReading List API
    Identifierreading-list-api
    Version1.0.0
    Context/default/reading-list-api/v1.0.0
    DescriptionOptional. The console leaves it empty.
    Endpointhttps://apis.bijira.dev/samples/reading-list-api-service/v1.0/books

    Configure and create, with the name, identifier, version, context, and description

  7. Click Create.

The REST API is added to the project. Its overview lists the generated operations, such as GET /*, POST /*, PATCH /*, and DELETE /*, and the backend endpoint.

To view or edit the API definition, open the API and in the left navigation menu click Develop, then Definition. You can view the OpenAPI definition as YAML or JSON, or click Edit to change the operations.

Deploy the API​

Deploying places a build of the API on a gateway so requests can reach the backend through that gateway. Create a self-hosted gateway, start it with the setup commands the console shows, and then deploy the API to that gateway.

  1. In the left navigation menu, click API Gateways, then click Add API Gateway.

  2. Under Hosting, select Self-hosted API gateway.

  3. Enter the gateway details.

    FieldDescription
    Gateway TypeAPI Gateway.
    NameA name for the gateway. The handle is derived from this name and cannot be changed later.
    DescriptionOptional.
    EnvironmentThe environment this gateway belongs to.
    API Gateway VersionThe gateway version to run. Use the latest version.
    URLThe address where the gateway receives requests from clients, for example https://localhost:8443. Change it to match your infrastructure.

    Add API Gateway form for a self-hosted gateway, with the name, environment, gateway version, and URL

  4. Click Add API Gateway.

    The console gives you a registration token and the setup commands to run the gateway on your infrastructure. Run those commands on the machine that hosts the gateway. The gateway stays inactive until it connects to the control plane. Wait until its status is Active before you deploy.

    You can also use a cloud gateway instead of a self-hosted gateway. For more on gateways, see Manage Gateways.

  5. Open the API, and in the left navigation menu click Deploy.

  6. In Build Area, click Build and deploy. An API that has no build yet shows only this button. After the first build, the button is named Deploy.

    If the button is unavailable, no gateway in the environment is Active. Check that the gateway is running and connected to the control plane.

    Deploy page of an API that has one build, with the Build Area, the Deploy button with its arrow, and the gateways of the development environment

  7. In the deploy dialog, which is named for the environment, such as Deploy to development:

    1. Under Gateways, select the self-hosted gateway you created. The gateway must be Active.
    2. Confirm the Endpoint URL of the backend.
    3. Click Deploy.

After the deployment succeeds, the API overview lists the gateway under Deployed gateways. For more on deployment, see Deploy an API.

Test the API​

After the API is deployed, use the API Console to send a request through the gateway.

  1. In the left navigation menu, click Test. Console view is selected.

  2. Under Gateway, select the gateway you deployed the API to. The invoke URL of that gateway appears beside the gateway.

  3. In the endpoint list, select an operation, such as GET /*.

  4. Click Send. The Response panel shows the status, such as 200 OK, and the Body tab shows the response from the backend.

    Test page with the gateway selected, the endpoint list, the GET request panel with the Send button, and the Response panel

    note

    Through proxy is selected by default. If the console can't reach your gateway, for example a self-hosted gateway on your own network, select Direct. See API Console for the difference.

For more on the console, see API Console.

Publish the API​

Publishing makes the API available in the API Portal and AI Hub, where consumers can discover it and read its documentation.

  1. Create a portal if the organization does not have one.

    1. In the left navigation menu, click Portals, then click Add Portal.
    2. Enter a Name. Description is optional.
    3. If the form shows Login environment, select an environment. Portal users sign in through the authentication server of this environment. The field appears only when your organization has more than one environment. If you don't see it, continue with the next step.
    4. Allow self sign-up is turned on by default.
    5. Click Add Portal.

    Add Portal form with the name, description, login environment, and Allow self sign-up switch

    For more on portals, see Manage Portals.

  2. Open the API, and in the left navigation menu click Publish.

    The page lists the portals in the organization and the publishing status of the API in each portal.

  3. On the card for the portal you want, publish the API in one of two ways:

    • To publish with the default settings, click Publish.
    • To review the details first, click the arrow next to Publish, select Configure & Publish, and click Configure & Publish. The publish page of the API opens, with the API Details, Specification, Subscription Plans, Documentation, and Landing Page tabs. Review the tabs, and click Publish.

    Publish page with a portal card showing the Not published status, the Publish button with its arrow, and View in Portal

The status of the API in that portal changes to Published. To open the portal listing, click View in Portal. For more on publishing, see Publish an API.

Next Steps​

Was this page helpful?