@RestController @RequestMapping(value="/v2/service_instances/{instanceId}/service_bindings/{bindingId}") public class ServiceInstanceBindingController extends BaseController
catalogService| Constructor and Description |
|---|
ServiceInstanceBindingController(CatalogService catalogService,
ServiceInstanceBindingService serviceInstanceBindingService) |
| Modifier and Type | Method and Description |
|---|---|
ResponseEntity<?> |
createServiceInstanceBinding(String serviceInstanceId,
String bindingId,
CreateServiceInstanceBindingRequest request) |
ResponseEntity<String> |
deleteServiceInstanceBinding(String serviceInstanceId,
String bindingId,
String serviceDefinitionId,
String planId) |
ResponseEntity<ErrorMessage> |
handleException(ServiceInstanceBindingExistsException ex) |
getErrorResponse, getRequiredServiceDefinition, getServiceDefinition, handleException, handleException, handleException, handleException, handleException, handleException, handleException@Autowired public ServiceInstanceBindingController(CatalogService catalogService, ServiceInstanceBindingService serviceInstanceBindingService)
@RequestMapping(method=PUT) public ResponseEntity<?> createServiceInstanceBinding(@PathVariable(value="instanceId") String serviceInstanceId, @PathVariable(value="bindingId") String bindingId, @RequestBody CreateServiceInstanceBindingRequest request)
@RequestMapping(method=DELETE) public ResponseEntity<String> deleteServiceInstanceBinding(@PathVariable(value="instanceId") String serviceInstanceId, @PathVariable(value="bindingId") String bindingId, @RequestParam(value="service_id") String serviceDefinitionId, @RequestParam(value="plan_id") String planId)
@ExceptionHandler(value=ServiceInstanceBindingExistsException.class) public ResponseEntity<ErrorMessage> handleException(ServiceInstanceBindingExistsException ex)