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
ConstructorDescriptionEndPointDefinition(List<EndPointHttpMethod> endpointMethods, String path, String controllerClassName, String actionMethod, String argumentClassName)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEndpointMethod(List<EndPointHttpMethod> endpointMethod)
boolean
contains(EndPointHttpMethod[] endpointHttpMethods)
getPath()
boolean
-
Constructor Details
-
EndPointDefinition
-
-
Method Details
-
getActionMethodName
-
getDisplayControllerMethod
-
getEndpointMethods
-
getHTTPMethods
-
getPath
-
getArgumentClassName
-
getControllerClassName
-
hasOpenAPI
public boolean hasOpenAPI() -
contains
-
addEndpointMethod
-