Skip to content

Commit 1c885f1

Browse files
committed
update: prod values
1 parent 321b1e3 commit 1c885f1

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/py/mat3ra/api_client/client.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
from mat3ra.api_client.endpoints.properties import PropertiesEndpoints
1414
from mat3ra.api_client.endpoints.workflows import WorkflowEndpoints
1515

16+
# Default API Configuration
17+
DEFAULT_API_HOST = "platform.mat3ra.com"
18+
DEFAULT_API_PORT = 443
19+
DEFAULT_API_VERSION = "2018-10-01"
20+
DEFAULT_API_SECURE = True
21+
1622
# Default OIDC Configuration
1723
OIDC_BASE_URL = "http://localhost:3000/oidc"
1824
CLIENT_ID = "default-client"
@@ -53,10 +59,10 @@ class AuthContext(BaseModel):
5359

5460

5561
class APIEnv(BaseModel):
56-
host: str = Field(validation_alias=API_HOST_ENV_VAR)
57-
port: int = Field(validation_alias=API_PORT_ENV_VAR)
58-
version: str = Field(validation_alias=API_VERSION_ENV_VAR)
59-
secure: bool = Field(validation_alias=API_SECURE_ENV_VAR)
62+
host: str = Field(default=DEFAULT_API_HOST, validation_alias=API_HOST_ENV_VAR)
63+
port: int = Field(default=DEFAULT_API_PORT, validation_alias=API_PORT_ENV_VAR)
64+
version: str = Field(default=DEFAULT_API_VERSION, validation_alias=API_VERSION_ENV_VAR)
65+
secure: bool = Field(default=DEFAULT_API_SECURE, validation_alias=API_SECURE_ENV_VAR)
6066

6167
@classmethod
6268
def from_env(cls) -> "APIEnv":

0 commit comments

Comments
 (0)