Uploaded image for project: 'VPMS Web Application'
  1. OVPMS-1981

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Booking
    • Labels:
      None
    • Sprint:

      Description

      The BookingService.create() method is defined as:

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

      It should be:

          @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.

        Attachments

          Activity

            People

            • Assignee:
              tanderson Tim Anderson
              Reporter:
              tanderson Tim Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 6h
                6h

                  Who's Looking?