Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Airflow plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LEXIS Platform
Orchestrator
Airflow plugin
Commits
a6af2518
Commit
a6af2518
authored
1 month ago
by
fol0037
Browse files
Options
Downloads
Plain Diff
Merge branch 'Fix/get-YAML-paths' into 'devel'
fixed get YAML endpoints See merge request
!17
parents
7ffef650
4bc763e1
No related branches found
Branches containing commit
No related tags found
3 merge requests
!33
NEW PROD PHASE merge
,
!18
YAML endpoints path fix
,
!17
fixed get YAML endpoints
Pipeline
#4201
passed
1 month ago
Stage: test
Stage: build_publish
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lexis_api/blueprints/cwl_workflows_blueprint.py
+13
-6
13 additions, 6 deletions
lexis_api/blueprints/cwl_workflows_blueprint.py
lexis_api/blueprints/yaml_workflows_blueprint.py
+13
-6
13 additions, 6 deletions
lexis_api/blueprints/yaml_workflows_blueprint.py
with
26 additions
and
12 deletions
lexis_api/blueprints/cwl_workflows_blueprint.py
+
13
−
6
View file @
a6af2518
...
...
@@ -72,6 +72,10 @@ class CWLWfsBody(BaseModel):
project_shortname
:
str
yaml_content
:
str
class
CWLWfsPath
(
BaseModel
):
project_shortname
:
str
wf_id
:
str
@cwl_wfs_api.get
(
"
/
"
,
responses
=
{
"
201
"
:
EndpointResponse
})
def
index
():
...
...
@@ -253,13 +257,16 @@ def update_cwl(body: CWLWfsBody):
return
ResponseMessages
.
bad_server
()
@cwl_wfs_api.
pos
t
(
"
/get-cwl-workflow/<project_shortname>/<wf_id>
"
,
responses
=
{
"
201
"
:
EndpointResponse
,
"
400
"
:
EndpointResponse
,
"
401
"
:
EndpointResponse
,
"
403
"
:
EndpointResponse
,
"
500
"
:
EndpointResponse
})
@cwl_wfs_api.
ge
t
(
"
/get-cwl-workflow/<
string:
project_shortname>/<
string:
wf_id>
"
,
responses
=
{
"
201
"
:
EndpointResponse
,
"
400
"
:
EndpointResponse
,
"
401
"
:
EndpointResponse
,
"
403
"
:
EndpointResponse
,
"
500
"
:
EndpointResponse
})
@requires_authentication
def
get_cwl_wf
(
project_shortname
:
str
,
wf_id
:
str
):
def
get_cwl_wf
(
path
:
CWLWfsPath
):
project_shortname
:
str
=
path
.
project_shortname
wf_id
:
str
=
path
.
wf_id
log
.
debug
(
f
"
project_shortname:
{
project_shortname
}
, wf_id:
{
wf_id
}
"
)
...
...
This diff is collapsed.
Click to expand it.
lexis_api/blueprints/yaml_workflows_blueprint.py
+
13
−
6
View file @
a6af2518
...
...
@@ -75,6 +75,10 @@ class TOSCAWfsBody(BaseModel):
project_shortname
:
str
yaml_content
:
str
class
TOSCAWfsPath
(
BaseModel
):
project_shortname
:
str
wf_id
:
str
@tosca_wfs_api.get
(
"
/
"
,
responses
=
{
"
201
"
:
EndpointResponse
})
def
index
():
...
...
@@ -254,13 +258,16 @@ def update_yaml_tosca(body: TOSCAWfsBody):
return
ResponseMessages
.
bad_server
()
@tosca_wfs_api.
pos
t
(
"
/get-tosca-yaml-workflow/<project_shortname>/<wf_id>
"
,
responses
=
{
"
201
"
:
EndpointResponse
,
"
400
"
:
EndpointResponse
,
"
401
"
:
EndpointResponse
,
"
403
"
:
EndpointResponse
,
"
500
"
:
EndpointResponse
})
@tosca_wfs_api.
ge
t
(
"
/get-tosca-yaml-workflow/<
string:
project_shortname>/<
string:
wf_id>
"
,
responses
=
{
"
201
"
:
EndpointResponse
,
"
400
"
:
EndpointResponse
,
"
401
"
:
EndpointResponse
,
"
403
"
:
EndpointResponse
,
"
500
"
:
EndpointResponse
})
@requires_authentication
def
get_tosca_yaml_wf
(
project_shortname
:
str
,
wf_id
:
str
):
def
get_tosca_yaml_wf
(
path
:
TOSCAWfsPath
):
project_shortname
:
str
=
path
.
project_shortname
wf_id
:
str
=
path
.
wf_id
log
.
debug
(
f
"
project_short:
{
project_shortname
}
, wf_id:
{
wf_id
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment