@Path(value="/routers/{routerId}/scenarios")
@Produces(value="application/json")
public class ScenarioResource
extends Object
| Constructor and Description |
|---|
ScenarioResource(OTPServer otpServer,
String routerId) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getScenario(String scenarioId)
Return specific scenario defined for this router by ID.
|
javax.ws.rs.core.Response |
getScenarioDescriptions()
Return a list of all scenarios defined for this router.
|
@GET public javax.ws.rs.core.Response getScenarioDescriptions()
@GET
@Path(value="/{scenarioId}")
public javax.ws.rs.core.Response getScenario(@PathParam(value="scenarioId")
String scenarioId)
Copyright © 2018. All rights reserved.