Class RestServiceListImpl
java.lang.Object
com.peterphi.std.guice.web.rest.service.servicedescription.RestServiceListImpl
- All Implemented Interfaces:
RestServiceList
A simple REST resource that lists the services registered with the
RestResourceRegistry
N.B. by default we do not enforce authorisation on this resource, because it can be very useful for developers (and the
knowledge of APIs shouldn't in and of itself introduce a security risk. Access can be restricted by setting
framework.webauth.scope.framework-info.force-skip=false-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetExampleXML
(String className, boolean minimal) getServiceDescription
(int serviceId, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo) getXSDSchema
(String className) index
(javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo)
-
Constructor Details
-
RestServiceListImpl
@Inject public RestServiceListImpl()
-
-
Method Details
-
index
public String index(javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo) throws Exception - Specified by:
index
in interfaceRestServiceList
- Throws:
Exception
-
getServiceDescription
public String getServiceDescription(int serviceId, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo) throws Exception - Specified by:
getServiceDescription
in interfaceRestServiceList
- Throws:
Exception
-
getXSDSchema
- Specified by:
getXSDSchema
in interfaceRestServiceList
- Throws:
Exception
-
getExampleXML
- Specified by:
getExampleXML
in interfaceRestServiceList
- Throws:
Exception
-