File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1313from mat3ra .api_client .endpoints .properties import PropertiesEndpoints
1414from 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
1723OIDC_BASE_URL = "http://localhost:3000/oidc"
1824CLIENT_ID = "default-client"
@@ -53,10 +59,10 @@ class AuthContext(BaseModel):
5359
5460
5561class 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" :
You can’t perform that action at this time.
0 commit comments