@RestController
public class VidController
extends org.openecomp.portalsdk.core.controller.RestrictedBaseController
Constructor and Description |
---|
VidController(VidService vidService) |
Modifier and Type | Method and Description |
---|---|
SecureServices |
getServices(javax.servlet.http.HttpServletRequest request)
Gets the services.
|
ServiceModel |
getServices(String uuid,
javax.servlet.http.HttpServletRequest request)
Gets the services.
|
org.springframework.web.servlet.ModelAndView |
getServicesView(javax.servlet.http.HttpServletRequest request)
Gets the services view.
|
getExceptionView, getViewName, isAccessible, isRESTfulCall, setExceptionView, setViewName
@Autowired public VidController(VidService vidService) throws org.openecomp.sdc.tosca.parser.exceptions.SdcToscaParserException
org.openecomp.sdc.tosca.parser.exceptions.SdcToscaParserException
@RequestMapping(value="/rest/models/services", method=GET) public SecureServices getServices(javax.servlet.http.HttpServletRequest request) throws VidServiceUnavailableException
request
- the requestVidServiceUnavailableException
- the vid service unavailable exception@RequestMapping(value="/rest/models/services/{uuid}", method=GET) public ServiceModel getServices(@PathVariable(value="uuid") String uuid, javax.servlet.http.HttpServletRequest request) throws VidServiceUnavailableException
uuid
- the uuidVidServiceUnavailableException
- the vid service unavailable exception@RequestMapping(value="/serviceModels", method=GET) public org.springframework.web.servlet.ModelAndView getServicesView(javax.servlet.http.HttpServletRequest request) throws VidServiceUnavailableException
request
- the requestVidServiceUnavailableException
- the vid service unavailable exceptionCopyright © 2017. All rights reserved.