@Path(value="docs")
public class ApiDocResource
extends org.onosproject.rest.AbstractInjectionResource
| Constructor and Description |
|---|
ApiDocResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getApi(String key)
Get Swagger UI JSON.
|
javax.ws.rs.core.Response |
getApiList()
Get all registered REST API docs.
|
javax.ws.rs.core.Response |
getApiModel(String key)
Get REST API model schema.
|
javax.ws.rs.core.Response |
getDefault()
Get Swagger UI main index page.
|
javax.ws.rs.core.Response |
getIndex()
Get Swagger UI main index page.
|
javax.ws.rs.core.Response |
getResource(String resource)
Get Swagger UI resource.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET @Path(value="apis") public javax.ws.rs.core.Response getApiList()
@GET
@Path(value="apis/{key: .*?}/swagger.json")
public javax.ws.rs.core.Response getApi(@PathParam(value="key")
String key)
key - REST API web context@GET
@Path(value="apis/{key: .*?}/model.json")
public javax.ws.rs.core.Response getApiModel(@PathParam(value="name")
String key)
key - REST API web context@GET
public javax.ws.rs.core.Response getDefault()
throws IOException,
URISyntaxException
IOException - if unable to get index resourceURISyntaxException - if unable to create redirect URI@GET
@Path(value="index.html")
public javax.ws.rs.core.Response getIndex()
throws IOException
IOException - if unable to get index resource@GET
@Path(value="{resource: .*}")
public javax.ws.rs.core.Response getResource(@PathParam(value="resource")
String resource)
throws IOException
resource - path of the resourceIOException - if unable to get named resource