@Beta
public class ApiDocProvider
extends java.lang.Object
Constructor and Description |
---|
ApiDocProvider(java.lang.String key,
java.lang.String name,
java.lang.ClassLoader classLoader)
Creates a new REST API documentation provider.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
docs()
Returns input stream containing Swagger UI compatible JSON.
|
java.lang.String |
key()
Returns the REST API key.
|
java.io.InputStream |
model()
Returns input stream containing JSON model schema.
|
java.lang.String |
name()
Returns the REST API name.
|
public ApiDocProvider(java.lang.String key, java.lang.String name, java.lang.ClassLoader classLoader)
key
- REST API keyname
- REST API nameclassLoader
- class loaderpublic java.lang.String key()
public java.lang.String name()
public java.io.InputStream docs()
public java.io.InputStream model()