@@ -43,4 +36,21 @@ public interface CredentialApi {
...
@@ -43,4 +36,21 @@ public interface CredentialApi {
method=RequestMethod.POST)
method=RequestMethod.POST)
ResponseEntity<String>createCredentials(@ApiParam(value="Created user object",required=true)@Valid@RequestBodyCredentialsbody);
ResponseEntity<String>createCredentials(@ApiParam(value="Created user object",required=true)@Valid@RequestBodyCredentialsbody);
@ApiOperation(value="Get all credential IDs",nickname="getCredentialIDs",notes="Returns all IDss ",response=String.class,responseContainer="List",authorizations={
@Authorization(value="drip_auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
ResponseEntity<String>getDeployToscaTemplateByID(@ApiParam(value="ID of topolog template to deploy",required=true)@PathVariable("id")Stringid);
ResponseEntity<String>getDeployToscaTemplateByID(@ApiParam(value="ID of topolog template to deploy",required=true)@PathVariable("id")Stringid);
@ApiOperation(value="Get all topolog template IDs",nickname="getDeployedToscaTemplateIDs",notes="Returns all IDss ",response=String.class,responseContainer="List",authorizations={
@Authorization(value="drip_auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
ResponseEntity<String>getPlanToscaTemplateByID(@ApiParam(value="ID of topolog template plan",required=true)@PathVariable("id")Stringid);
ResponseEntity<String>getPlanToscaTemplateByID(@ApiParam(value="ID of topolog template plan",required=true)@PathVariable("id")Stringid);
@ApiOperation(value="Get all topolog template IDs",nickname="getPlanToscaTemplateIDs",notes="Returns all IDss ",response=String.class,responseContainer="List",authorizations={
@Authorization(value="drip_auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
@ApiOperation(value="plan tosca template",nickname="planToscaTemplateByID",notes="Returns the ID of the planed topolog template",response=String.class,authorizations={
@ApiOperation(value="plan tosca template",nickname="planToscaTemplateByID",notes="Returns the ID of the planed topolog template",response=String.class,authorizations={
@Authorization(value="drip_auth",scopes={
@Authorization(value="drip_auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@@ -42,6 +33,23 @@ public interface ProvisionerApi {
...
@@ -42,6 +33,23 @@ public interface ProvisionerApi {
ResponseEntity<String>getProvisionToscaTemplateByID(@ApiParam(value="ID of topolog template to plan",required=true)@PathVariable("id")Stringid);
ResponseEntity<String>getProvisionToscaTemplateByID(@ApiParam(value="ID of topolog template to plan",required=true)@PathVariable("id")Stringid);
@ApiOperation(value="Get all topolog template IDs",nickname="getProvisionedToscaTemplateIDs",notes="Returns all IDss ",response=String.class,responseContainer="List",authorizations={
@Authorization(value="drip_auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
@ApiOperation(value="provision tosca template",nickname="provisionPlanToscaTemplateByID",notes="provosions the operationId: Plan Tosca Template Returns the provision ID",response=String.class,authorizations={
@ApiOperation(value="provision tosca template",nickname="provisionPlanToscaTemplateByID",notes="provosions the operationId: Plan Tosca Template Returns the provision ID",response=String.class,authorizations={
@Authorization(value="drip_auth",scopes={
@Authorization(value="drip_auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
publicResponseEntity<String>provisionPlanToscaTemplateByID(@ApiParam(value="ID of topolog template to plan",required=true)@PathVariable("id")Stringid){
publicResponseEntity<String>provisionPlanToscaTemplateByID(@ApiParam(value="ID of topolog template to plan",required=true)@PathVariable("id")Stringid){
Stringaccept=request.getHeader("Accept");
Stringaccept=request.getHeader("Accept");
if(accept!=null&&accept.contains("")){
if(accept!=null&&accept.contains("")){
try{
try{
...
@@ -64,4 +57,9 @@ public class ProvisionerApiController implements ProvisionerApi {
...
@@ -64,4 +57,9 @@ public class ProvisionerApiController implements ProvisionerApi {
@ApiResponse(code=400,message="Invalid ID supplied"),
@ApiResponse(code=404,message="ToscaTemplate not found")})
@RequestMapping(value="/tosca_template/{id}",
method=RequestMethod.DELETE)
ResponseEntity<String>deleteToscaTemplateByID(@ApiParam(value="ID of topolog template to return",required=true)@PathVariable("id")Stringid);
@ApiOperation(value="Find topolog template by ID",nickname="getToscaTemplateByID",notes="Returns a single topolog template",response=String.class,authorizations={
@Authorization(value="drip_auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
@ApiResponse(code=400,message="Invalid ID supplied"),
@ApiResponse(code=404,message="ToscaTemplate not found"),
@ApiResponse(code=405,message="Invalid input")})
@RequestMapping(value="/tosca_template/{id}",
produces={"text/plain"},
method=RequestMethod.GET)
ResponseEntity<String>getToscaTemplateByID(@ApiParam(value="ID of topolog template to return",required=true)@PathVariable("id")Stringid);
@ApiOperation(value="Get all topolog template IDs",nickname="getToscaTemplateIDs",notes="Returns all IDss ",response=String.class,responseContainer="List",authorizations={
@Authorization(value="drip_auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")
@ApiResponse(code=400,message="Invalid ID supplied"),
@ApiResponse(code=404,message="ToscaTemplate not found"),
@ApiResponse(code=405,message="Invalid input")})
@RequestMapping(value="/tosca_template/{id}",
produces={"text/plain"},
consumes={"multipart/form-data"},
method=RequestMethod.PUT)
ResponseEntity<String>updateToscaTemplateByID(@ApiParam(value="ID of topolog template to return",required=true)@PathVariable("id")Stringid,@ApiParam(value="file detail")@Valid@RequestPart("file")MultipartFilefile);
@ApiOperation(value="upload a tosca template description file",nickname="uploadToscaTemplate",notes="",response=String.class,authorizations={
@Authorization(value="drip_auth",scopes={
@AuthorizationScope(scope="read:ToscaTemplate",description="read your topolog template"),
@AuthorizationScope(scope="write:ToscaTemplate",description="modify topolog template in your account")