Class ConfigViewServicesViewResource
- java.lang.Object
-
- org.odpi.openmetadata.viewservices.serverauthor.server.spring.ConfigViewServicesViewResource
-
@RestController @RequestMapping("/servers/{serverName}/open-metadata/view-services/server-author/users/{userId}/servers/{serverToBeConfiguredName}") public class ConfigViewServicesViewResource extends ObjectConfigViewServicesResource provides the configuration for setting up the Open Metadata View Services (OMVSs).
-
-
Constructor Summary
Constructors Constructor Description ConfigViewServicesViewResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerAuthorConfigurationResponseconfigureViewService(String userId, String serverName, String serverToBeConfiguredName, String serviceURLMarker, Map<String,Object> viewServiceOptions)Enable a single view service.ServerAuthorConfigurationResponsedisableViewService(String userId, String serverName, String serverToBeConfiguredName, String serviceURLMarker)Disable a single view service.
-
-
-
Method Detail
-
configureViewService
@PostMapping(path="/view-services/{serviceURLMarker}") public ServerAuthorConfigurationResponse configureViewService(@PathVariable String userId, @PathVariable String serverName, @PathVariable String serverToBeConfiguredName, @PathVariable String serviceURLMarker, @RequestBody(required=false) Map<String,Object> viewServiceOptions)Enable a single view service.- Parameters:
userId- user that is issuing the request.serverName- local server name.serverToBeConfiguredName- name of the server to be configured.viewServiceOptions- property name/value pairs used to configure the view servicesserviceURLMarker- string indicating which view service it is configuring- Returns:
- the current stored configuration or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGConfigurationErrorException the event bus has not been configured or OMAGInvalidParameterException invalid serverName parameter.
-
disableViewService
@DeleteMapping(path="/view-services/{serviceURLMarker}") public ServerAuthorConfigurationResponse disableViewService(@PathVariable String userId, @PathVariable String serverName, @PathVariable String serverToBeConfiguredName, @PathVariable String serviceURLMarker)Disable a single view service.- Parameters:
userId- user that is issuing the request.serverName- local server name.serverToBeConfiguredName- name of the server to be configured.serviceURLMarker- string indicating which view service it is configuring- Returns:
- the current stored configuration or OMAGNotAuthorizedException the supplied userId is not authorized to issue this command or OMAGConfigurationErrorException the event bus has not been configured or OMAGInvalidParameterException invalid serverName parameter.
-
-