forked from ITISFoundation/osparc-simcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👽️ ✨ document status codes in api server (ITISFoundation#5386)
- Loading branch information
1 parent
5f6cacf
commit b4d276d
Showing
15 changed files
with
1,495 additions
and
154 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 1 addition & 18 deletions
19
services/api-server/src/simcore_service_api_server/api/routes/_common.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,7 @@ | ||
from typing import Any, Final | ||
|
||
from fastapi import status | ||
from typing import Final | ||
|
||
from ...core.settings import BasicSettings | ||
|
||
job_output_logfile_responses: dict[int | str, dict[str, Any]] = { | ||
status.HTTP_200_OK: { | ||
"content": { | ||
"application/octet-stream": { | ||
"schema": {"type": "string", "format": "binary"} | ||
}, | ||
"application/zip": {"schema": {"type": "string", "format": "binary"}}, | ||
"text/plain": {"schema": {"type": "string"}}, | ||
}, | ||
"description": "Returns a log file", | ||
}, | ||
status.HTTP_404_NOT_FOUND: {"description": "Log not found"}, | ||
} | ||
|
||
|
||
API_SERVER_DEV_FEATURES_ENABLED: Final[ | ||
bool | ||
] = BasicSettings.create_from_envs().API_SERVER_DEV_FEATURES_ENABLED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.