-
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.
Merge pull request #19 from Project-OMOTES/18-work-flow-configuration…
…-in-one-location workflows in one place working
- Loading branch information
Showing
18 changed files
with
206 additions
and
114 deletions.
There are no files selected for viewing
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,3 +1,5 @@ | ||
OMOTES_ID=omotes-rest | ||
|
||
RABBITMQ_HOSTNAME=localhost | ||
RABBITMQ_PORT=5672 | ||
RABBITMQ_USERNAME=omotes | ||
|
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
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
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,3 +1,8 @@ | ||
. .venv/bin/activate | ||
#!/bin/bash | ||
|
||
pip-sync requirements.txt | ||
if [[ "$OSTYPE" != "win32" && "$OSTYPE" != "msys" ]]; then | ||
echo "Activating .venv first." | ||
. .venv/bin/activate | ||
fi | ||
|
||
pip-sync ./dev-requirements.txt ./requirements.txt |
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,3 +1,8 @@ | ||
#!/bin/bash | ||
. .venv/bin/activate | ||
pip-compile -o requirements.txt ./pyproject.toml | ||
|
||
if [[ "$OSTYPE" != "win32" && "$OSTYPE" != "msys" ]]; then | ||
. .venv/bin/activate | ||
fi | ||
|
||
pip-compile --output-file=requirements.txt pyproject.toml | ||
pip-compile --extra=dev -c requirements.txt --output-file=dev-requirements.txt pyproject.toml |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import logging | ||
|
||
from flask_smorest import Blueprint | ||
from flask.views import MethodView | ||
from flask import jsonify, Response | ||
|
||
from omotes_rest.typed_app import current_app | ||
|
||
|
||
logger = logging.getLogger("omotes_rest") | ||
|
||
api = Blueprint( | ||
"Workflow", | ||
"Workflow", | ||
url_prefix="/workflow", | ||
description="Omotes workflows: retrieve the available workflow and their properties", | ||
) | ||
|
||
|
||
@api.route("/") | ||
class WorkflowAPI(MethodView): | ||
"""Requests.""" | ||
|
||
def get(self) -> Response: | ||
"""Return a summary of all workflows with parameter jsonforms format.""" | ||
return jsonify(current_app.rest_if.get_workflows_jsonforms_format()) |
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
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.