public class Swagger extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Swagger.Resource |
| Constructor and Description |
|---|
Swagger(Router router,
String apiVersion) |
Swagger(Router router,
String prefix,
String apiVersion) |
| Modifier and Type | Method and Description |
|---|---|
Swagger.Resource |
createResource(String path) |
Swagger.Resource |
createResource(String path,
String description) |
protected Swagger.Resource |
createSwaggerResource(String path,
String description) |
static Swagger |
from(Router router,
String version,
Object... objs) |
static Swagger |
from(Swagger router,
Object... objs)
Builds a Swagger from an annotated Java Object
|
Swagger |
setAuthorizations(io.vertx.core.json.JsonObject authorizations) |
Swagger |
setInfo(io.vertx.core.json.JsonObject info) |
public Swagger setInfo(io.vertx.core.json.JsonObject info)
public Swagger setAuthorizations(io.vertx.core.json.JsonObject authorizations)
protected Swagger.Resource createSwaggerResource(String path, String description)
public Swagger.Resource createResource(String path)
public Swagger.Resource createResource(String path, String description)
Copyright © 2016. All rights reserved.