Commit 09caf5c9 authored by Spiros Koulouzis's avatar Spiros Koulouzis

Merge old-origin/DRIP_3.0 into DRIP_3.0

parents 646a8dd1 a47cf2a9
...@@ -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: "/drip-api/3.0" basePath: "/conf-api/3.0"
schemes: schemes:
- "https" - "https"
- "http" - "http"
...@@ -34,7 +34,7 @@ paths: ...@@ -34,7 +34,7 @@ paths:
405: 405:
description: "Invalid input" description: "Invalid input"
security: security:
- drip_auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
/tosca_template/ids: /tosca_template/ids:
...@@ -58,7 +58,7 @@ paths: ...@@ -58,7 +58,7 @@ paths:
405: 405:
description: "Invalid input" description: "Invalid input"
security: security:
- drip_auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
/tosca_template/{id}: /tosca_template/{id}:
...@@ -86,7 +86,7 @@ paths: ...@@ -86,7 +86,7 @@ paths:
405: 405:
description: "Invalid input" description: "Invalid input"
security: security:
- drip_auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
put: put:
...@@ -119,7 +119,7 @@ paths: ...@@ -119,7 +119,7 @@ paths:
405: 405:
description: "Invalid input" description: "Invalid input"
security: security:
- drip_auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
delete: delete:
...@@ -142,7 +142,7 @@ paths: ...@@ -142,7 +142,7 @@ paths:
404: 404:
description: "ToscaTemplate not found" description: "ToscaTemplate not found"
security: security:
- drip_auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
/planner/plan/{id}: /planner/plan/{id}:
...@@ -170,7 +170,7 @@ paths: ...@@ -170,7 +170,7 @@ paths:
405: 405:
description: "Invalid input" description: "Invalid input"
security: security:
- drip_auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
/provisioner/provision/{id}: /provisioner/provision/{id}:
...@@ -198,7 +198,35 @@ paths: ...@@ -198,7 +198,35 @@ paths:
405: 405:
description: "Invalid input" description: "Invalid input"
security: security:
- drip_auth: - auth:
- "write:ToscaTemplate"
- "read:ToscaTemplate"
/provisioner/{id}:
get:
summary: "get provisiner "
description: "provosions the operationId: Plan Tosca Template Returns the provision ID"
operationId: "getProvisiner"
produces:
- "text/plain"
parameters:
- name: "id"
in: "path"
description: "ID of topolog template to plan"
required: true
type: "string"
responses:
200:
description: "successful operation"
schema:
$ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/Provisioner.yml#/Provisioner"
400:
description: "Invalid ID supplied"
404:
description: "ToscaTemplate not found"
405:
description: "Invalid input"
security:
- auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
/deployer/deploy/{id}: /deployer/deploy/{id}:
...@@ -226,7 +254,7 @@ paths: ...@@ -226,7 +254,7 @@ paths:
405: 405:
description: "Invalid input" description: "Invalid input"
security: security:
- drip_auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
/credential: /credential:
...@@ -257,7 +285,7 @@ paths: ...@@ -257,7 +285,7 @@ paths:
405: 405:
description: "Invalid input" description: "Invalid input"
security: security:
- drip_auth: - auth:
- "write:Credentials" - "write:Credentials"
- "read:Credentials" - "read:Credentials"
/credential/ids: /credential/ids:
...@@ -281,7 +309,7 @@ paths: ...@@ -281,7 +309,7 @@ paths:
405: 405:
description: "Invalid input" description: "Invalid input"
security: security:
- drip_auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
/user: /user:
...@@ -306,7 +334,7 @@ paths: ...@@ -306,7 +334,7 @@ paths:
409: 409:
description: "already exists" description: "already exists"
security: security:
- drip_auth: - auth:
- "admin:User" - "admin:User"
/user/login: /user/login:
get: get:
...@@ -375,7 +403,7 @@ paths: ...@@ -375,7 +403,7 @@ paths:
404: 404:
description: "User not found" description: "User not found"
security: security:
- drip_auth: - auth:
- "admin:User" - "admin:User"
put: put:
tags: tags:
...@@ -402,7 +430,7 @@ paths: ...@@ -402,7 +430,7 @@ paths:
404: 404:
description: "User not found" description: "User not found"
security: security:
- drip_auth: - auth:
- "admin:User" - "admin:User"
delete: delete:
summary: "Delete user" summary: "Delete user"
...@@ -421,10 +449,10 @@ paths: ...@@ -421,10 +449,10 @@ paths:
404: 404:
description: "User not found" description: "User not found"
security: security:
- drip_auth: - auth:
- "admin:User" - "admin:User"
securityDefinitions: securityDefinitions:
drip_auth: auth:
type: "oauth2" type: "oauth2"
authorizationUrl: "http://localhost/oauth/dialog" authorizationUrl: "http://localhost/oauth/dialog"
flow: "implicit" flow: "implicit"
......
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