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
Modifier and TypeFieldDescriptionprivate HttpMethod
The HTTP method of the endpoint, e.g.private String
The URL of the endpoint e.g.Fields inherited from class edu.university.ecs.lab.common.models.ir.Method
annotations, className, microserviceName, parameters, returnType
Fields inherited from class edu.university.ecs.lab.common.models.ir.Node
name, packageAndClassName
-
Constructor Summary
-
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:
toJsonObject
in interfaceJsonSerializable
- Overrides:
toJsonObject
in classMethod
- Returns:
- a JsonObject representing this
-