Commit a47cf2a9 authored by skoulouzis's avatar skoulouzis

skoulouzis/drip:3.0.0

parent 31d5f802
...@@ -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,7 @@ paths: ...@@ -198,7 +198,7 @@ paths:
405: 405:
description: "Invalid input" description: "Invalid input"
security: security:
- drip_auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
/provisioner/{id}: /provisioner/{id}:
...@@ -226,7 +226,7 @@ paths: ...@@ -226,7 +226,7 @@ paths:
405: 405:
description: "Invalid input" description: "Invalid input"
security: security:
- drip_auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
/deployer/deploy/{id}: /deployer/deploy/{id}:
...@@ -254,7 +254,7 @@ paths: ...@@ -254,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:
...@@ -285,7 +285,7 @@ paths: ...@@ -285,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:
...@@ -309,7 +309,7 @@ paths: ...@@ -309,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:
...@@ -334,7 +334,7 @@ paths: ...@@ -334,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:
...@@ -403,7 +403,7 @@ paths: ...@@ -403,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:
...@@ -430,7 +430,7 @@ paths: ...@@ -430,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"
...@@ -449,10 +449,10 @@ paths: ...@@ -449,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