Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
82e8dd19
Commit
82e8dd19
authored
Aug 18, 2020
by
Manuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated deployment.yml
parent
0b2972fb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
129 additions
and
30 deletions
+129
-30
swagger.yml
...n-hub/business-logic-microservice/app/configs/swagger.yml
+121
-30
deployment.yml
...hub/business-logic-microservice/deployment/deployment.yml
+8
-0
No files found.
src/participation-hub/business-logic-microservice/app/configs/swagger.yml
View file @
82e8dd19
...
@@ -15,11 +15,55 @@ produces:
...
@@ -15,11 +15,55 @@ produces:
basePath
:
"
/api"
basePath
:
"
/api"
paths
:
paths
:
/
layers/{name}/cluster-mapping
:
/
use-case
:
delete
:
delete
:
security
:
security
:
-
JwtAdmin
:
[]
-
JwtAdmin
:
[]
operationId
:
"
routes.layer.delete_uses_cases"
tags
:
-
"
Use-Cases"
summary
:
"
Delete
all
use-cases"
description
:
"
Delete
all
use-cases"
responses
:
'
200'
:
description
:
"
Successful
Request"
get
:
security
:
-
JwtRegular
:
[]
operationId
:
"
routes.layer.use_cases"
tags
:
-
"
Use-Cases"
summary
:
"
Retrieves
all
use-cases"
description
:
"
Retrieves
all
use-cases"
responses
:
'
200'
:
description
:
"
Successful
Request"
/use-case/{use_case}/layers
:
get
:
security
:
-
JwtRegular
:
[]
operationId
:
"
routes.layer.get_all_for_use_case"
tags
:
-
"
Layers"
summary
:
"
Retrieves
all
layers
belonging
to
the
given
use-case"
description
:
"
Retrieves
all
layers
belonging
to
the
given
use-case"
parameters
:
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
responses
:
'
200'
:
description
:
"
Successful
Request"
'
404'
:
description
:
"
Use-Case
does
not
exist"
/use-case/{use_case}/cluster-mapping/layers/{name}
:
delete
:
security
:
-
JwtRegular
:
[]
operationId
:
"
routes.layer.delete_cluster_mapping"
operationId
:
"
routes.layer.delete_cluster_mapping"
tags
:
tags
:
-
"
Layers"
-
"
Layers"
...
@@ -31,6 +75,11 @@ paths:
...
@@ -31,6 +75,11 @@ paths:
description
:
"
Name
of
the
layer
(must
exist)"
description
:
"
Name
of
the
layer
(must
exist)"
required
:
true
required
:
true
type
:
"
string"
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
-
in
:
body
-
in
:
body
name
:
"
Object"
name
:
"
Object"
required
:
true
required
:
true
...
@@ -50,7 +99,7 @@ paths:
...
@@ -50,7 +99,7 @@ paths:
description
:
"
Field
in
request
is
missing
or
attribute
does
not
exist
in
the
Layer"
description
:
"
Field
in
request
is
missing
or
attribute
does
not
exist
in
the
Layer"
put
:
put
:
security
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.add_cluster_mapping"
operationId
:
"
routes.layer.add_cluster_mapping"
tags
:
tags
:
-
"
Layers"
-
"
Layers"
...
@@ -62,6 +111,11 @@ paths:
...
@@ -62,6 +111,11 @@ paths:
description
:
"
Name
of
the
layer
(must
exist)"
description
:
"
Name
of
the
layer
(must
exist)"
required
:
true
required
:
true
type
:
"
string"
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
-
in
:
body
-
in
:
body
name
:
"
Object"
name
:
"
Object"
required
:
true
required
:
true
...
@@ -79,10 +133,10 @@ paths:
...
@@ -79,10 +133,10 @@ paths:
description
:
"
Layer
does
not
exist"
description
:
"
Layer
does
not
exist"
'
400'
:
'
400'
:
description
:
"
Field
in
request
is
missing
or
attribute
does
not
exist
in
the
Layer"
description
:
"
Field
in
request
is
missing
or
attribute
does
not
exist
in
the
Layer"
/layers/{name}/mapping
:
/
use-case/{use_case}/
layers/{name}/mapping
:
delete
:
delete
:
security
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.delete_mapping"
operationId
:
"
routes.layer.delete_mapping"
tags
:
tags
:
-
"
Layers"
-
"
Layers"
...
@@ -94,6 +148,11 @@ paths:
...
@@ -94,6 +148,11 @@ paths:
description
:
"
Name
of
the
layer
(must
exist)"
description
:
"
Name
of
the
layer
(must
exist)"
required
:
true
required
:
true
type
:
"
string"
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
-
in
:
body
-
in
:
body
name
:
"
Object"
name
:
"
Object"
required
:
true
required
:
true
...
@@ -112,7 +171,7 @@ paths:
...
@@ -112,7 +171,7 @@ paths:
description
:
"
Field
in
request
is
missing"
description
:
"
Field
in
request
is
missing"
put
:
put
:
security
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.add_mapping"
operationId
:
"
routes.layer.add_mapping"
tags
:
tags
:
-
"
Layers"
-
"
Layers"
...
@@ -124,6 +183,11 @@ paths:
...
@@ -124,6 +183,11 @@ paths:
description
:
"
Name
of
the
layer
(must
exist)"
description
:
"
Name
of
the
layer
(must
exist)"
required
:
true
required
:
true
type
:
"
string"
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
-
in
:
body
-
in
:
body
name
:
"
Object"
name
:
"
Object"
required
:
true
required
:
true
...
@@ -143,10 +207,10 @@ paths:
...
@@ -143,10 +207,10 @@ paths:
description
:
"
Layer
does
not
exist"
description
:
"
Layer
does
not
exist"
'
400'
:
'
400'
:
description
:
"
Field
in
request
is
missing"
description
:
"
Field
in
request
is
missing"
/layers/{name}
:
/
use-case/{use_case}/
layers/{name}
:
delete
:
delete
:
security
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.delete_one"
operationId
:
"
routes.layer.delete_one"
tags
:
tags
:
-
"
Layers"
-
"
Layers"
...
@@ -158,6 +222,11 @@ paths:
...
@@ -158,6 +222,11 @@ paths:
description
:
"
Name
of
the
layer
to
delete"
description
:
"
Name
of
the
layer
to
delete"
required
:
true
required
:
true
type
:
"
string"
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
responses
:
responses
:
'
200'
:
'
200'
:
description
:
"
Successful
Request"
description
:
"
Successful
Request"
...
@@ -165,7 +234,7 @@ paths:
...
@@ -165,7 +234,7 @@ paths:
description
:
"
Layer
does
not
exist"
description
:
"
Layer
does
not
exist"
get
:
get
:
security
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.one"
operationId
:
"
routes.layer.one"
tags
:
tags
:
-
"
Layers"
-
"
Layers"
...
@@ -177,6 +246,11 @@ paths:
...
@@ -177,6 +246,11 @@ paths:
description
:
"
Name
of
the
layer"
description
:
"
Name
of
the
layer"
required
:
true
required
:
true
type
:
"
string"
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
responses
:
responses
:
'
200'
:
'
200'
:
description
:
"
Successful
Request"
description
:
"
Successful
Request"
...
@@ -184,7 +258,7 @@ paths:
...
@@ -184,7 +258,7 @@ paths:
description
:
"
Layer
does
not
exist"
description
:
"
Layer
does
not
exist"
post
:
post
:
security
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.add"
operationId
:
"
routes.layer.add"
tags
:
tags
:
-
"
Layers"
-
"
Layers"
...
@@ -196,6 +270,11 @@ paths:
...
@@ -196,6 +270,11 @@ paths:
description
:
"
Name
of
the
new
layer"
description
:
"
Name
of
the
new
layer"
required
:
true
required
:
true
type
:
"
string"
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
responses
:
responses
:
'
200'
:
'
200'
:
description
:
"
Successful
Request"
description
:
"
Successful
Request"
...
@@ -204,7 +283,7 @@ paths:
...
@@ -204,7 +283,7 @@ paths:
/layers
:
/layers
:
post
:
post
:
security
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.add_complete"
operationId
:
"
routes.layer.add_complete"
tags
:
tags
:
-
"
Layers"
-
"
Layers"
...
@@ -215,23 +294,7 @@ paths:
...
@@ -215,23 +294,7 @@ paths:
name
:
"
Object"
name
:
"
Object"
required
:
true
required
:
true
schema
:
schema
:
type
:
object
$ref
:
'
#/definitions/LayerAdapter'
properties
:
name
:
type
:
string
example
:
"
layer1"
cluster_properties
:
type
:
array
items
:
type
:
string
example
:
"
internal_property_1"
properties
:
type
:
object
additionalProperties
:
type
:
string
example
:
"
internal_property_1"
:
"
external_property_1"
"
internal_property_2"
:
"
external_property_2"
responses
:
responses
:
'
200'
:
'
200'
:
description
:
"
Successful
Request"
description
:
"
Successful
Request"
...
@@ -240,7 +303,7 @@ paths:
...
@@ -240,7 +303,7 @@ paths:
get
:
get
:
security
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.all"
operationId
:
"
routes.layer.all"
tags
:
tags
:
-
"
Layers"
-
"
Layers"
...
@@ -252,7 +315,7 @@ paths:
...
@@ -252,7 +315,7 @@ paths:
/debug
:
/debug
:
post
:
post
:
security
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
debug.echo"
operationId
:
"
debug.echo"
tags
:
tags
:
-
"
Echo"
-
"
Echo"
...
@@ -267,3 +330,31 @@ paths:
...
@@ -267,3 +330,31 @@ paths:
responses
:
responses
:
'
200'
:
'
200'
:
description
:
"
Successful
echo
of
request
data"
description
:
"
Successful
echo
of
request
data"
definitions
:
LayerAdapter
:
type
:
"
object"
required
:
-
name
-
use_case
-
cluster_properties
-
properties
properties
:
name
:
type
:
string
example
:
"
layer1"
use_case
:
type
:
string
example
:
"
car-sharing"
cluster_properties
:
type
:
array
items
:
type
:
string
example
:
"
internal_property_1"
properties
:
type
:
object
additionalProperties
:
type
:
string
example
:
"
internal_property_1"
:
"
external_property_1"
"
internal_property_2"
:
"
external_property_2"
\ No newline at end of file
src/participation-hub/business-logic-microservice/deployment/deployment.yml
View file @
82e8dd19
...
@@ -32,6 +32,14 @@ spec:
...
@@ -32,6 +32,14 @@ spec:
image
:
alexx882/business-logic-microservice
image
:
alexx882/business-logic-microservice
ports
:
ports
:
-
containerPort
:
5000
-
containerPort
:
5000
volumeMounts
:
-
mountPath
:
/srv/articonf
name
:
articonf
volumes
:
-
name
:
articonf
hostPath
:
path
:
/srv/articonf
type
:
Directory
---
---
apiVersion
:
v1
apiVersion
:
v1
kind
:
Service
kind
:
Service
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment