Commit 82e8dd19 authored by Manuel's avatar Manuel

updated deployment.yml

parent 0b2972fb
......@@ -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:
- JwtAdmin: []
- JwtRegular: []
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:
- JwtAdmin: []
- JwtRegular: []
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:
- JwtAdmin: []
- JwtRegular: []
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:
- JwtAdmin: []
- JwtRegular: []
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:
- JwtAdmin: []
- JwtRegular: []
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:
- JwtAdmin: []
- JwtRegular: []
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:
- JwtAdmin: []
- JwtRegular: []
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:
- JwtAdmin: []
- JwtRegular: []
operationId: "routes.layer.all"
tags:
- "Layers"
......@@ -252,7 +315,7 @@ paths:
/debug:
post:
security:
- JwtAdmin: []
- JwtRegular: []
operationId: "debug.echo"
tags:
- "Echo"
......@@ -267,3 +330,31 @@ paths:
responses:
'200':
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:
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
......
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