Commit 6be9e016 authored by Spiros Koulouzis's avatar Spiros Koulouzis

Merge origin/DRIP_3.0 into DRIP_3.0

parents 4f91ee99 a23488e1
...@@ -8,7 +8,7 @@ info: ...@@ -8,7 +8,7 @@ info:
license: license:
name: "Apache 2.0" name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html" url: "http://www.apache.org/licenses/LICENSE-2.0.html"
# basePath: "/tosca-sure" basePath: "/tosca-sure/1.0.0"
schemes: schemes:
- "https" - "https"
- "http" - "http"
...@@ -33,10 +33,6 @@ paths: ...@@ -33,10 +33,6 @@ paths:
type: "string" type: "string"
405: 405:
description: "Invalid input" description: "Invalid input"
security:
- drip_auth:
- "write:ToscaTemplate"
- "read:ToscaTemplate"
/tosca_template/{id}: /tosca_template/{id}:
get: get:
description: "" description: ""
...@@ -53,7 +49,7 @@ paths: ...@@ -53,7 +49,7 @@ paths:
200: 200:
description: "successful operation" description: "successful operation"
schema: schema:
$ref: '$ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/ToscaTemplate.yml"' $ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/ToscaTemplate.yml#/ToscaTemplate"
405: 405:
description: "Invalid input" description: "Invalid input"
/tosca_template/{id}/topology_template: /tosca_template/{id}/topology_template:
...@@ -72,7 +68,7 @@ paths: ...@@ -72,7 +68,7 @@ paths:
200: 200:
description: "successful operation" description: "successful operation"
schema: schema:
$ref: ''#/definitions/TopologyTemplate' $ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/TopologyTemplate.yml#/TopologyTemplate"
405: 405:
description: "Invalid input" description: "Invalid input"
/tosca_template/{id}/topology_template/node_templates: /tosca_template/{id}/topology_template/node_templates:
...@@ -389,7 +385,6 @@ paths: ...@@ -389,7 +385,6 @@ paths:
type: object type: object
405: 405:
description: "Invalid input" description: "Invalid input"
/tosca_template/{id}/topology_template/node_templates/related: /tosca_template/{id}/topology_template/node_templates/related:
get: get:
summary: "" summary: ""
...@@ -454,18 +449,3 @@ paths: ...@@ -454,18 +449,3 @@ paths:
type: object type: object
405: 405:
description: "Invalid input" description: "Invalid input"
\ No newline at end of file
securityDefinitions:
drip_auth:
type: "oauth2"
authorizationUrl: "http://localhost/oauth/dialog"
flow: "implicit"
scopes:
write:ToscaTemplate: "modify topolog template in your account"
read:ToscaTemplate: "read your topolog template"
admin:User: "Grants access to admin operations"
write:Credentials: "modify cloud credentials in your account"
read:Credentials: "read your cloud credentials"
# Added by API Auto Mocking Plugin
host: virtserver.swaggerhub.com
# Added by API Auto Mocking Plugin
basePath: /skoulouzis/SURE_TOSCA/1.0.0
\ No newline at end of file
NodeTemplate: NodeTemplate:
type: "object" type: "object"
properties: properties:
name: derived_from:
type: "string" type: "string"
type: properties:
type: "string"
requirements:
type: "array"
items:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
artifacts: requirements:
type: "array"
items:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
properties: interfaces:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
interfaces: capabilities:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
capabilities: type:
type: "string"
description:
type: "string"
directives:
type: "array"
items:
type: string
attributes:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
workflows: artifacts:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
TopologyTemplate: TopologyTemplate:
type: "object" type: "object"
properties: properties:
description: description:
...@@ -9,9 +9,11 @@ TopologyTemplate: ...@@ -9,9 +9,11 @@ TopologyTemplate:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
policies: node_templates:
type: "array" type: object
items: additionalProperties:
$ref: 'https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/NodeTemplate.yml#/NodeTemplate'
relationship_templates:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
...@@ -21,19 +23,17 @@ TopologyTemplate: ...@@ -21,19 +23,17 @@ TopologyTemplate:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
node_templates: groups:
type: object
additionalProperties:
$ref: 'https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/TOSCA/openAPI/TOSCA/NodeTemplate.yml#/NodeTemplate'
relationship_templates:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
groups: substitution_mappings:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
substitution_mappings: policies:
type: "array"
items:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
ToscaTemplate: ToscaTemplate:
type: "object" type: "object"
properties: properties:
tosca_definitions_version: tosca_definitions_version:
...@@ -7,26 +7,28 @@ ToscaTemplate: ...@@ -7,26 +7,28 @@ ToscaTemplate:
type: "string" type: "string"
template_name: template_name:
type: "string" type: "string"
topology_template:
$ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/TopologyTemplate.yml#/TopologyTemplate"
template_author:
type: "string"
template_version:
type: "string"
description:
type: "string"
imports: imports:
type: "array" type: "array"
items: items:
type: object type: object
additionalProperties: additionalProperties:
type: string
repositories:
type: object type: object
additionalProperties:
type: string
dsl_definitions: dsl_definitions:
type: object type: object
additionalProperties: additionalProperties:
type: string type: object
node_types: node_types:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
topology_template:
$ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/TopologyTemplate.yml#/TopologyTemplate"
relationship_types: relationship_types:
type: object type: object
additionalProperties: additionalProperties:
...@@ -59,7 +61,8 @@ ToscaTemplate: ...@@ -59,7 +61,8 @@ ToscaTemplate:
type: object type: object
additionalProperties: additionalProperties:
type: object type: object
description: repositories:
type: "string" type: object
template_author: additionalProperties:
type: "string" type: object
...@@ -445,6 +445,6 @@ definitions: ...@@ -445,6 +445,6 @@ definitions:
NodeTemplate: NodeTemplate:
$ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/NodeTemplate.yml#/NodeTemplate" $ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/NodeTemplate.yml#/NodeTemplate"
TopologyTemplate: TopologyTemplate:
$ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/TopologyTemplate.yml" $ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/TopologyTemplate.yml#/TopologyTemplate"
ToscaTemplate: ToscaTemplate:
$ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/ToscaTemplate.yml" $ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/ToscaTemplate.yml#/ToscaTemplate"
\ No newline at end of file \ No newline at end of file
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