Package org.onebusaway.watchdog.api
Class RESTEndpointsDocumenter
- java.lang.Object
-
- org.onebusaway.watchdog.api.RESTEndpointsDocumenter
-
public class RESTEndpointsDocumenter extends Object
Explores the Java classes in a given package, looking for annotations indicating REST endpoints. These are written to an HTML table, documenting basic information about all the known endpoints. Borrowed from http://dalelane.co.uk/blog/?p=1871 Borrowed from http://dalelane.co.uk/blog/?p=1871- Author:
- Dale Lane (dale.lane@gmail.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRESTEndpointsDocumenter.EndpointclassRESTEndpointsDocumenter.EndpointParameter
-
Constructor Summary
Constructors Constructor Description RESTEndpointsDocumenter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RESTEndpointsDocumenter.Endpoint>findRESTEndpoints(String basepackage)Returns REST endpoints defined in Java classes in the specified package.
-
-
-
Method Detail
-
findRESTEndpoints
public List<RESTEndpointsDocumenter.Endpoint> findRESTEndpoints(String basepackage) throws IOException, ClassNotFoundException
Returns REST endpoints defined in Java classes in the specified package.- Throws:
IOExceptionClassNotFoundException
-
-