Commit ae43cbfa authored by skoulouzis's avatar skoulouzis

skoulouzis/SURE_TOSCA:1.0.0

parent 73dfecdb
...@@ -54,11 +54,11 @@ paths: ...@@ -54,11 +54,11 @@ paths:
description: "Not found" description: "Not found"
405: 405:
description: "Invalid input" description: "Invalid input"
/tosca_template/{id}/interface_types: /tosca_template/{id}/imports:
get: get:
summary: "" summary: ""
description: "returns the interface types" description: "returns the interface types"
operationId: "getInterfaceTypes" operationId: "getImports"
produces: produces:
- "application/json" - "application/json"
parameters: parameters:
...@@ -67,23 +67,6 @@ paths: ...@@ -67,23 +67,6 @@ paths:
description: "ID of topolog template uplodaed" description: "ID of topolog template uplodaed"
required: true required: true
type: "string" type: "string"
- in: query
name: interface_type
type: string
required: false
description: The interface type
- in: query
name: derived_from
type: string
required: false
description: derived from interface
- in: query
name: operations
type: array
items:
type: string
required: false
description: the list of operations e.e. create, stop.
responses: responses:
200: 200:
description: "successful operation" description: "successful operation"
...@@ -96,12 +79,12 @@ paths: ...@@ -96,12 +79,12 @@ paths:
404: 404:
description: "Not found" description: "Not found"
405: 405:
description: "Invalid input" description: "Invalid input"
/tosca_template/{id}/imports: /tosca_template/{id}/dsl_definitions:
get: get:
summary: "" summary: ""
description: "returns the interface types" description: "returns the interface types"
operationId: "getImports" operationId: "getDslDefinitions"
produces: produces:
- "application/json" - "application/json"
parameters: parameters:
...@@ -110,6 +93,18 @@ paths: ...@@ -110,6 +93,18 @@ paths:
description: "ID of topolog template uplodaed" description: "ID of topolog template uplodaed"
required: true required: true
type: "string" type: "string"
- in: query
name: anchors
type: array
items:
type: string
required: false
description: the anchors the definition is for
- in: query
name: derived_from
type: string
required: false
description: derived from
responses: responses:
200: 200:
description: "successful operation" description: "successful operation"
...@@ -122,12 +117,12 @@ paths: ...@@ -122,12 +117,12 @@ paths:
404: 404:
description: "Not found" description: "Not found"
405: 405:
description: "Invalid input" description: "Invalid input"
/tosca_template/{id}/dsl_definitions: /tosca_template/{id}/types:
get: get:
summary: "" summary: ""
description: "returns the interface types" description: "returns the interface types"
operationId: "getDslDefinitions" operationId: "getTypes"
produces: produces:
- "application/json" - "application/json"
parameters: parameters:
...@@ -137,12 +132,37 @@ paths: ...@@ -137,12 +132,37 @@ paths:
required: true required: true
type: "string" type: "string"
- in: query - in: query
name: anchors name: kind_of_type
type: array description: the type we are looking for e.g. capability_types, artifact_types. etc.
items: type: string
type: string enum: [node_types, relationship_types, capability_types, artifact_types, data_types, interface_types, policy_types, group_types]
- in: query
name: has_interfaces
type: boolean
description: filter if has interfaces
- in: query
name: type_name
type: string
required: false required: false
description: the anchors the definition is for description: The relationship type
- in: query
name: has_properties
type: boolean
description: filter if has properties
- in: query
name: has_attributes
type: boolean
description: filter if has attributes
- in: query
name: derived_from
type: string
required: false
description: derived from
- in: query
name: has_requirements
type: boolean
description: filter if has requirements
responses: responses:
200: 200:
description: "successful operation" description: "successful operation"
......
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