Commit 119754cc authored by Spiros Koulouzis's avatar Spiros Koulouzis

fix API def error

parent 1003daaa
...@@ -6,3 +6,11 @@ docker run --hostname my-proxy --name some-myproxy -p 7512:7512 -p 7513:7513 -p ...@@ -6,3 +6,11 @@ docker run --hostname my-proxy --name some-myproxy -p 7512:7512 -p 7513:7513 -p
#--------Add admin----------------- #--------Add admin-----------------
docker exec -t mongo-inst mongo -eval 'db.user.insert({"password":"$2a$10$QdysFgsH0sl6Y4BD84UhGO7yyNfoDPXjjEHkDJ3pX6cRfHDj2Q0BO","roles":["ADMIN"],"username":"admin","accountNonExpired":true,"accountNonLocked":true,"credentialsNonExpired":true,"enabled":true})' localhost/drip docker exec -t mongo-inst mongo -eval 'db.user.insert({"password":"$2a$10$QdysFgsH0sl6Y4BD84UhGO7yyNfoDPXjjEHkDJ3pX6cRfHDj2Q0BO","roles":["ADMIN"],"username":"admin","accountNonExpired":true,"accountNonLocked":true,"credentialsNonExpired":true,"enabled":true})' localhost/drip
#--------------------------Git-------------------------------------------
git add .
git commit -m "$MESSAGE"
git push origin
\ No newline at end of file
...@@ -173,7 +173,6 @@ paths: ...@@ -173,7 +173,6 @@ paths:
- auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read:ToscaTemplate" - "read:ToscaTemplate"
/provisioner/provision/{id}: /provisioner/provision/{id}:
get: get:
summary: "provision tosca template" summary: "provision tosca template"
...@@ -202,34 +201,6 @@ paths: ...@@ -202,34 +201,6 @@ paths:
- auth: - auth:
- "write:ToscaTemplate" - "write:ToscaTemplate"
- "read: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/CONF/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"
- "read:ToscaTemplate"
/deployer/deploy/{id}: /deployer/deploy/{id}:
get: get:
summary: "deploy the software tosca template" summary: "deploy the software tosca template"
...@@ -273,7 +244,7 @@ paths: ...@@ -273,7 +244,7 @@ paths:
description: "Created user object" description: "Created user object"
required: true required: true
schema: schema:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/TOSCA/Credentials.yml#/Credentials" $ref: "#/definitions/Credentials"
responses: responses:
200: 200:
description: "successful operation" description: "successful operation"
...@@ -326,7 +297,7 @@ paths: ...@@ -326,7 +297,7 @@ paths:
description: "Created user object" description: "Created user object"
required: true required: true
schema: schema:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/User.yml#/User" $ref: "#/definitions/User"
responses: responses:
200: 200:
description: "successful operation" description: "successful operation"
...@@ -424,7 +395,7 @@ paths: ...@@ -424,7 +395,7 @@ paths:
description: "Updated user object" description: "Updated user object"
required: true required: true
schema: schema:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/User.yml#/User" $ref: "#/definitions/User"
responses: responses:
400: 400:
description: "Invalid user supplied" description: "Invalid user supplied"
...@@ -432,7 +403,7 @@ paths: ...@@ -432,7 +403,7 @@ paths:
description: "User not found" description: "User not found"
security: security:
- auth: - auth:
- "admin:User" - "admin:User"
delete: delete:
summary: "Delete user" summary: "Delete user"
description: "This can only be done by the logged in user." description: "This can only be done by the logged in user."
...@@ -473,4 +444,4 @@ definitions: ...@@ -473,4 +444,4 @@ definitions:
TopologyTemplate: TopologyTemplate:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/TOSCA/TopologyTemplate.yml#/TopologyTemplate" $ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/TOSCA/TopologyTemplate.yml#/TopologyTemplate"
ToscaTemplate: ToscaTemplate:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/TOSCA/ToscaTemplate.yml#/ToscaTemplate" $ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/TOSCA/ToscaTemplate.yml#/ToscaTemplate"
\ 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