|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smartbear.swagger4j.URISwaggerSource
public class URISwaggerSource
SwaggerSource for reading Swagger definitions from a base URI. The extension of the URI will be used to decide on the format (.json / .xml)
Constructor Summary | |
---|---|
URISwaggerSource(URI uri)
|
Method Summary | |
---|---|
static URI |
buildUri(URI uri,
String path,
Constants.Format format)
|
static Constants.Format |
extractFormat(URI uri)
|
Constants.Format |
getFormat()
Gets the format of the Swagger objects returned by this Source |
Reader |
readApiDeclaration(String basePath,
String path)
Gets a Reader for an API Declaration with the specified path. |
Reader |
readResourceListing()
Gets a Reader for the ResourceListing of this SwaggerSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URISwaggerSource(URI uri)
Method Detail |
---|
public static URI buildUri(URI uri, String path, Constants.Format format)
public static Constants.Format extractFormat(URI uri)
public Reader readResourceListing() throws IOException
SwaggerSource
readResourceListing
in interface SwaggerSource
IOException
public Reader readApiDeclaration(String basePath, String path) throws IOException
SwaggerSource
readApiDeclaration
in interface SwaggerSource
path
- the path of the API Declaration
IOException
public Constants.Format getFormat()
SwaggerSource
getFormat
in interface SwaggerSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |