Model that represents an API environment.

Export

ApiEnvironment

Properties

Methods

Properties

baseUrl: string

The base URL of the API environemnt.

Production: ApiEnvironment = ...

Production environment instance.

Static

Example

// Example usage
const apiEnvironmentProduction = ApiEnvironment.Production;
Test: ApiEnvironment = ...

Test environment instance.

Static

Example

// Example usage
const apiEnvironmentTest = ApiEnvironment.Test;

Methods

  • Creates a custom API environment.

    Parameters

    • baseUrl: string

      The base URL of the custom environment.

    Returns ApiEnvironment

    The custom API environment instace.

    Static

    Example

    // Example usage
    const customApiEnvironment = ApiEnvironment.create('http://my-api.com');