Commit 82e8dd19 authored by Manuel's avatar Manuel

updated deployment.yml

parent 0b2972fb
...@@ -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:
- JwtAdmin: [] - JwtRegular: []
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:
- JwtAdmin: [] - JwtRegular: []
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:
- JwtAdmin: [] - JwtRegular: []
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:
- JwtAdmin: [] - JwtRegular: []
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:
- JwtAdmin: [] - JwtRegular: []
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:
- JwtAdmin: [] - JwtRegular: []
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:
- JwtAdmin: [] - JwtRegular: []
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:
- JwtAdmin: [] - JwtRegular: []
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:
- JwtAdmin: [] - JwtRegular: []
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
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment