Package org.onebusaway.admin.service.api
Class ConfigResource
- java.lang.Object
-
- org.onebusaway.admin.service.bundle.api.AuthenticatedResource
-
- org.onebusaway.admin.service.api.ConfigResource
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.web.context.ServletContextAware
@Path("/config") @Component public class ConfigResource extends AuthenticatedResource implements org.springframework.web.context.ServletContextAware
-
-
Field Summary
-
Fields inherited from class org.onebusaway.admin.service.bundle.api.AuthenticatedResource
_currentUserService
-
-
Constructor Summary
Constructors Constructor Description ConfigResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
deploy(String environment)
javax.ws.rs.core.Response
generateApiKey()
javax.ws.rs.core.Response
listDepots(String environment)
javax.ws.rs.core.Response
listDscs(String environment)
void
setServletContext(javax.servlet.ServletContext context)
javax.ws.rs.core.Response
status(String id)
-
Methods inherited from class org.onebusaway.admin.service.bundle.api.AuthenticatedResource
isAuthorized
-
-
-
-
Method Detail
-
generateApiKey
@Path("/generate-api-key") @GET public javax.ws.rs.core.Response generateApiKey()
-
listDepots
@Path("/deploy/list/depot/{environment}") @GET public javax.ws.rs.core.Response listDepots(@PathParam("environment") String environment)
-
listDscs
@Path("/deploy/list/dsc/{environment}") @GET public javax.ws.rs.core.Response listDscs(@PathParam("environment") String environment)
-
deploy
@Path("/deploy/from/{environment}") @GET public javax.ws.rs.core.Response deploy(@PathParam("environment") String environment)
-
status
@Path("/deploy/status/{id}/list") @GET public javax.ws.rs.core.Response status(@PathParam("id") String id)
-
setServletContext
public void setServletContext(javax.servlet.ServletContext context)
- Specified by:
setServletContext
in interfaceorg.springframework.web.context.ServletContextAware
-
-