Skip to content

Commit

Permalink
consumes application/x-www-form-urlencoded
Browse files Browse the repository at this point in the history
  • Loading branch information
jendib committed Jan 2, 2022
1 parent ff8155b commit 523501a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*
* @author jtremeaux
*/
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public abstract class BaseResource {
/**
* @apiDefine admin Admin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.sismics.docs.rest.resource;

import javax.json.JsonObject;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

/**
Expand All @@ -23,6 +25,7 @@ public class ThirdPartyWebhookResource extends BaseResource {
* @return Response
*/
@POST
@Consumes(MediaType.APPLICATION_JSON)
public Response webhook(JsonObject request) {
lastPayload = request;
return Response.ok().build();
Expand Down

0 comments on commit 523501a

Please sign in to comment.