We're updating the issue view to help you get more done. 

BookingService.create() method returns incorrect Content-Type header

Description

The BookingService.create() method is defined as:

1 2 3 4 @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response create(Booking booking, @Context UriInfo uriInfo);

It should be:

1 2 3 4 @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.TEXT_PLAIN) Response create(Booking booking, @Context UriInfo uriInfo);

as the actual reponse is a plain text string.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

2.0

Priority

Minor