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
Hide 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:
basePath
:
"
/api"
paths
:
/
layers/{name}/cluster-mapping
:
/
use-case
:
delete
:
security
:
-
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"
tags
:
-
"
Layers"
...
...
@@ -31,6 +75,11 @@ paths:
description
:
"
Name
of
the
layer
(must
exist)"
required
:
true
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
-
in
:
body
name
:
"
Object"
required
:
true
...
...
@@ -50,7 +99,7 @@ paths:
description
:
"
Field
in
request
is
missing
or
attribute
does
not
exist
in
the
Layer"
put
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.add_cluster_mapping"
tags
:
-
"
Layers"
...
...
@@ -62,6 +111,11 @@ paths:
description
:
"
Name
of
the
layer
(must
exist)"
required
:
true
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
-
in
:
body
name
:
"
Object"
required
:
true
...
...
@@ -79,10 +133,10 @@ paths:
description
:
"
Layer
does
not
exist"
'
400'
:
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
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.delete_mapping"
tags
:
-
"
Layers"
...
...
@@ -94,6 +148,11 @@ paths:
description
:
"
Name
of
the
layer
(must
exist)"
required
:
true
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
-
in
:
body
name
:
"
Object"
required
:
true
...
...
@@ -112,7 +171,7 @@ paths:
description
:
"
Field
in
request
is
missing"
put
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.add_mapping"
tags
:
-
"
Layers"
...
...
@@ -124,6 +183,11 @@ paths:
description
:
"
Name
of
the
layer
(must
exist)"
required
:
true
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
-
in
:
body
name
:
"
Object"
required
:
true
...
...
@@ -143,10 +207,10 @@ paths:
description
:
"
Layer
does
not
exist"
'
400'
:
description
:
"
Field
in
request
is
missing"
/layers/{name}
:
/
use-case/{use_case}/
layers/{name}
:
delete
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.delete_one"
tags
:
-
"
Layers"
...
...
@@ -158,6 +222,11 @@ paths:
description
:
"
Name
of
the
layer
to
delete"
required
:
true
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
responses
:
'
200'
:
description
:
"
Successful
Request"
...
...
@@ -165,7 +234,7 @@ paths:
description
:
"
Layer
does
not
exist"
get
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.one"
tags
:
-
"
Layers"
...
...
@@ -177,6 +246,11 @@ paths:
description
:
"
Name
of
the
layer"
required
:
true
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
responses
:
'
200'
:
description
:
"
Successful
Request"
...
...
@@ -184,7 +258,7 @@ paths:
description
:
"
Layer
does
not
exist"
post
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.add"
tags
:
-
"
Layers"
...
...
@@ -196,6 +270,11 @@ paths:
description
:
"
Name
of
the
new
layer"
required
:
true
type
:
"
string"
-
name
:
"
use_case"
in
:
"
path"
description
:
"
Name
of
the
Use-Case
the
layer
belongs
to"
required
:
true
type
:
"
string"
responses
:
'
200'
:
description
:
"
Successful
Request"
...
...
@@ -204,7 +283,7 @@ paths:
/layers
:
post
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.add_complete"
tags
:
-
"
Layers"
...
...
@@ -215,23 +294,7 @@ paths:
name
:
"
Object"
required
:
true
schema
:
type
:
object
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"
$ref
:
'
#/definitions/LayerAdapter'
responses
:
'
200'
:
description
:
"
Successful
Request"
...
...
@@ -240,7 +303,7 @@ paths:
get
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
routes.layer.all"
tags
:
-
"
Layers"
...
...
@@ -252,7 +315,7 @@ paths:
/debug
:
post
:
security
:
-
Jwt
Admin
:
[]
-
Jwt
Regular
:
[]
operationId
:
"
debug.echo"
tags
:
-
"
Echo"
...
...
@@ -266,4 +329,32 @@ paths:
type
:
object
responses
:
'
200'
:
description
:
"
Successful
echo
of
request
data"
\ No newline at end of file
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:
image
:
alexx882/business-logic-microservice
ports
:
-
containerPort
:
5000
volumeMounts
:
-
mountPath
:
/srv/articonf
name
:
articonf
volumes
:
-
name
:
articonf
hostPath
:
path
:
/srv/articonf
type
:
Directory
---
apiVersion
:
v1
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