public class ApiDeclarationRoute extends StdEntityRoute
{
apiVersion: "0.2",
swaggerVersion: "1.1",
basePath: "http://petstore.swagger.wordnik.com/api",
resourcePath: "/pet.{format}"
...
apis: [...]
models: {...}
}
See API Declarationmapper| Constructor and Description |
|---|
ApiDeclarationRoute(com.fasterxml.jackson.databind.ObjectMapper mapper,
Factory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.base.Optional<?> |
doRoute(RestxRequest restxRequest,
RestxRouteMatch match) |
getObjectWriter, handle, writeValue@Inject
public ApiDeclarationRoute(@Named(value="FrontObjectMapper")
com.fasterxml.jackson.databind.ObjectMapper mapper,
Factory factory)
protected com.google.common.base.Optional<?> doRoute(RestxRequest restxRequest, RestxRouteMatch match) throws IOException
doRoute in class StdEntityRouteIOExceptionCopyright © 2013. All Rights Reserved.