Creates a HttpResponse, which is a 200 OK, with the given entity set as the payload with the given content-type.
Creates a HttpResponse, which is a 200 OK, with the given entity set as the payload with the given content-type.
Creates a HttpResponse, which is a 200 OK, with the given entity set as the payload with the given content-type.
Creates a HttpResponse, which is a 200 OK, with the given entity set as the payload with the given content-type.
Extracts the current session.
Extracts the current session. If no such session exists then will exit the route with a 500 Internal Service Error.
Extracts a property from the session.
Extracts a property from the session. If the session does not exist then the endpoint will return a 500 Internal Service Error. If the property does not exist in the session then the route will return a 500 Internal Service Error.
Builds a HttpResponse with the status code set to a HttpStatus which has the value of the given int.
Builds a HttpResponse with the status code set to a HttpStatus which has the value of the given int.
Eg, status(200) will return a HttpResponse of 200
Builds a HttpResponse with the status code set the given HttpStatus
Builds a HttpResponse with the status code set the given HttpStatus
Eg, status(HttpStatus.OK) will return a HttpResponse of 200