Commit 3e35ba31 authored by Spiros Koulouzis's avatar Spiros Koulouzis

updated swagger

parent aa6a9e44
...@@ -4,9 +4,18 @@ node_types: ...@@ -4,9 +4,18 @@ node_types:
tosca.nodes.ARTICONF.Root: tosca.nodes.ARTICONF.Root:
description: root ARTICONF node description: root ARTICONF node
attributes:
current_state:
type: string
required: false
description: the current state of the node
desired_state:
type: string
required: false
description: the current state of the node
tosca.nodes.ARTICONF.Container.Application.Docker: tosca.nodes.ARTICONF.Container.Application.Docker:
derived_from: tosca.nodes.ARTICONF.Root derived_from: tosca.nodes.ARTICONF.Application
description: description of container description: description of container
properties: properties:
ports: ports:
...@@ -41,7 +50,7 @@ node_types: ...@@ -41,7 +50,7 @@ node_types:
description: url of the service description: url of the service
tosca.nodes.ARTICONF.docker.Orchestrator: tosca.nodes.ARTICONF.docker.Orchestrator:
derived_from: tosca.nodes.ARTICONF.Root derived_from: tosca.nodes.ARTICONF.Application
description: a container orchestrator description: a container orchestrator
requirements: requirements:
- host: - host:
...@@ -239,3 +248,7 @@ node_types: ...@@ -239,3 +248,7 @@ node_types:
type: tosca.capabilities.Compute type: tosca.capabilities.Compute
node: node:
type: tosca.capabilities.Node type: tosca.capabilities.Node
tosca.nodes.ARTICONF.Application:
derived_from: tosca.nodes.ARTICONF.Root
description: Base application node
...@@ -116,10 +116,10 @@ services: ...@@ -116,10 +116,10 @@ services:
ports: ports:
- "30000:8080" - "30000:8080"
sure-tosca: #sure-tosca:
image: sure-tosca:3.0.0 #image: sure-tosca:3.0.0
ports: #ports:
- "8081:8081" #- "8081:8081"
planner: planner:
depends_on: depends_on:
......
...@@ -127,7 +127,7 @@ paths: ...@@ -127,7 +127,7 @@ paths:
- read:ToscaTemplate - read:ToscaTemplate
delete: delete:
summary: Deletes a tosca topology template summary: Deletes a tosca topology template
description: "" description: If the topology is provisoned it will delete the provison (Infrastructure). If it is deployed it will delete the deploymet too (Application)
operationId: deleteToscaTemplateByID operationId: deleteToscaTemplateByID
parameters: parameters:
- name: id - name: id
...@@ -135,6 +135,14 @@ paths: ...@@ -135,6 +135,14 @@ paths:
description: ID of topology template to return description: ID of topology template to return
required: true required: true
type: string type: string
- name: node_names
in: query
description: The node(s) to delete
required: false
type: array
items:
type: string
collectionFormat: multi
responses: responses:
"200": "200":
description: successful operation description: successful operation
...@@ -179,7 +187,7 @@ paths: ...@@ -179,7 +187,7 @@ paths:
/provisioner/provision/{id}: /provisioner/provision/{id}:
get: get:
summary: provision tosca template summary: provision tosca template
description: 'provosions the operationId: Plan Tosca Template Returns the provision ID' description: deletes the provisioned Infrastructure
operationId: provisionPlanToscaTemplateByID operationId: provisionPlanToscaTemplateByID
produces: produces:
- text/plain - text/plain
...@@ -204,6 +212,43 @@ paths: ...@@ -204,6 +212,43 @@ paths:
- auth: - auth:
- write:ToscaTemplate - write:ToscaTemplate
- read:ToscaTemplate - read:ToscaTemplate
/scaler/{id}:
get:
summary: scale tosca template
operationId: scaleProvisionedToscaTemplateByID
produces:
- text/plain
parameters:
- name: id
in: path
description: ID of topolog template to scale
required: true
type: string
- name: node_name
in: query
description: The node to scale
required: true
type: string
- name: node_num
in: query
description: The number of nodes to scale
required: true
type: integer
responses:
"200":
description: successful operation
schema:
type: string
"400":
description: Invalid ID supplied
"404":
description: ToscaTemplate not found
"405":
description: Invalid input
security:
- auth:
- write:ToscaTemplate
- read:ToscaTemplate
/deployer/deploy/{id}: /deployer/deploy/{id}:
get: get:
summary: deploy the software tosca template summary: deploy the software tosca template
......
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