|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApiDeclaration
Holds a Swagger API Declaration - see https://github.com/wordnik/swagger-core/wiki/API-Declaration
Method Summary | |
---|---|
Api |
addApi(String path)
Adds a new API to this ApiDeclaration with the specified path |
Api |
getApi(String path)
Gets the API at the specified path |
List<Api> |
getApis()
Gets a list of APIs for this ApiDeclarations |
String |
getApiVersion()
|
String |
getBasePath()
|
String |
getResourcePath()
|
String |
getSwaggerVersion()
|
void |
removeApi(Api api)
Removes the specified Api from this ApiDeclaration |
void |
setApiVersion(String apiVersion)
|
void |
setBasePath(String basePath)
|
void |
setResourcePath(String resourcedPath)
|
void |
setSwaggerVersion(String swaggerVersion)
|
Method Detail |
---|
String getSwaggerVersion()
void setSwaggerVersion(String swaggerVersion)
String getApiVersion()
void setApiVersion(String apiVersion)
String getBasePath()
void setBasePath(String basePath)
String getResourcePath()
void setResourcePath(String resourcedPath)
List<Api> getApis()
Api
void removeApi(Api api)
api
- the Api to removeApi
Api addApi(String path)
path
- the path for the API to add
Api
Api getApi(String path)
path
- the path to the API
Api
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |