Class EndPointDefinition

java.lang.Object
org.javalite.activeweb.EndPointDefinition

public class EndPointDefinition extends Object
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 Details

  • Method Details

    • getActionMethodName

      public String getActionMethodName()
    • getDisplayControllerMethod

      public String getDisplayControllerMethod()
    • getEndpointMethods

      public List<EndPointHttpMethod> getEndpointMethods()
    • getHTTPMethods

      public List<HttpMethod> getHTTPMethods()
    • getPath

      public String getPath()
    • getArgumentClassName

      public String getArgumentClassName()
    • getControllerClassName

      public String getControllerClassName()
    • hasOpenAPI

      public boolean hasOpenAPI()
    • contains

      public boolean contains(EndPointHttpMethod[] endpointHttpMethods)
    • addEndpointMethod

      public void addEndpointMethod(List<EndPointHttpMethod> endpointMethod)