mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
consumes application/x-www-form-urlencoded
This commit is contained in:
parent
ff8155be6a
commit
523501a592
@ -21,6 +21,7 @@ import java.util.Set;
|
|||||||
*
|
*
|
||||||
* @author jtremeaux
|
* @author jtremeaux
|
||||||
*/
|
*/
|
||||||
|
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
|
||||||
public abstract class BaseResource {
|
public abstract class BaseResource {
|
||||||
/**
|
/**
|
||||||
* @apiDefine admin Admin
|
* @apiDefine admin Admin
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
package com.sismics.docs.rest.resource;
|
package com.sismics.docs.rest.resource;
|
||||||
|
|
||||||
import javax.json.JsonObject;
|
import javax.json.JsonObject;
|
||||||
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.POST;
|
import javax.ws.rs.POST;
|
||||||
import javax.ws.rs.Path;
|
import javax.ws.rs.Path;
|
||||||
|
import javax.ws.rs.core.MediaType;
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -23,6 +25,7 @@ public class ThirdPartyWebhookResource extends BaseResource {
|
|||||||
* @return Response
|
* @return Response
|
||||||
*/
|
*/
|
||||||
@POST
|
@POST
|
||||||
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
public Response webhook(JsonObject request) {
|
public Response webhook(JsonObject request) {
|
||||||
lastPayload = request;
|
lastPayload = request;
|
||||||
return Response.ok().build();
|
return Response.ok().build();
|
||||||
|
Loading…
Reference in New Issue
Block a user