Commit e3c61103 by Juho Salli

Merge branch 'restfix' into 'master'

Post method consume type fix

If we are receiving data via form, we should receive data as form-urlencoded..

See merge request !224
2 parents be85a7a1 e9873e13
...@@ -102,6 +102,7 @@ public class UserRestView { ...@@ -102,6 +102,7 @@ public class UserRestView {
@POST @POST
@Path("/giveplace/{placeId}") @Path("/giveplace/{placeId}")
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public Response setPlacesGivenStatus( public Response setPlacesGivenStatus(
@PathParam("placeId") Integer id, @PathParam("placeId") Integer id,
@FormParam("action") String status) { @FormParam("action") String status) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!