I have the following POST
endpoint that uses jax-rs
framework:
@POST
@NoCache
@Path("/{client}/email/template/type/{type}")
public void sendEmail(
@PathParam("client") String client,
@PathParam("type") String communicationTemplateType) {
emailService.sendEmail(client, communicationTemplateType);
}
Whenever I am hitting this endpoint I am getting the following error with an error code of 415
:
JBWEB000135: The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.
What is the issue with my endpoint?