Class Endpoint
java.lang.Object
edu.university.ecs.lab.common.models.ir.Node
edu.university.ecs.lab.common.models.ir.Method
edu.university.ecs.lab.common.models.ir.Endpoint
- All Implemented Interfaces:
JsonSerializable
Represents an extension of a method declaration. An endpoint exists at the controller level and
signifies an open mapping that can be the target of a rest call.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HttpMethodThe HTTP method of the endpoint, e.g.private StringThe URL of the endpoint e.g.Fields inherited from class edu.university.ecs.lab.common.models.ir.Method
annotations, className, microserviceName, parameters, returnTypeFields inherited from class edu.university.ecs.lab.common.models.ir.Node
name, packageAndClassName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
-
Field Details
-
url
The URL of the endpoint e.g. /api/v1/users/login, May have parameters like {param} which are converted to {?} -
httpMethod
The HTTP method of the endpoint, e.g. GET, POST, etc.
-
-
Constructor Details
-
Endpoint
-
Endpoint
-
-
Method Details
-
toJsonObject
public com.google.gson.JsonObject toJsonObject()- Specified by:
toJsonObjectin interfaceJsonSerializable- Overrides:
toJsonObjectin classMethod- Returns:
- a JsonObject representing this
-