Package org.javalite.activeweb
Class EndPointDefinition
java.lang.Object
org.javalite.activeweb.EndPointDefinition
Wraps multiple HTTP methods for a single endpoint. For instance:
http://university.com/api/students may have two methods: GET and POST, one to get students, another to save,
each with different semantics and documentation.
-
Constructor Summary
ConstructorsConstructorDescriptionEndPointDefinition(List<EndPointHttpMethod> endpointMethods, String path, String controllerClassName, String actionMethod, String argumentClassName) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEndpointMethod(List<EndPointHttpMethod> endpointMethod)booleancontains(EndPointHttpMethod[] endpointHttpMethods)getPath()boolean
-
Constructor Details
-
EndPointDefinition
-
-
Method Details
-
getActionMethodName
-
getDisplayControllerMethod
-
getEndpointMethods
-
getHTTPMethods
-
getPath
-
getArgumentClassName
-
getControllerClassName
-
hasOpenAPI
public boolean hasOpenAPI() -
contains
-
addEndpointMethod
-