Table of Contents

Class ApiConfig

public class ApiConfig : ScriptableObject
Inheritance
ApiConfig

Fields

BasePath

public string BasePath

Field Value

string

Environment

public ApiConfig.EnvironmentOption Environment

Field Value

ApiConfig.EnvironmentOption

LocalBaseUrl

public string LocalBaseUrl

Field Value

string

LocalPort

public int LocalPort

Field Value

int

ProductionBaseUrl

public string ProductionBaseUrl

Field Value

string

ProductionPort

public int ProductionPort

Field Value

int

RefreshTokenPath

public string RefreshTokenPath

Field Value

string

SignInPath

public string SignInPath

Field Value

string

SignOutPath

public string SignOutPath

Field Value

string

UseHttpsForLocal

public bool UseHttpsForLocal

Field Value

bool

Methods

GetBaseUrl()

Build the final base URL based on the selected environment and settings.

public string GetBaseUrl()

Returns

string

LoadFromResources(string)

public static ApiConfig LoadFromResources(string assetName = "ApiEnvironmentConfig")

Parameters

assetName string

Returns

ApiConfig