コード例 #1
0
 /**
  * Register a new webhook to a specific client.
  *
  * @param orcid the ORCID that corresponds to the user's record
  * @param webhook_uri the webhook that will be added to the user
  * @return
  */
 @PUT
 @Produces(value = {VND_ORCID_JSON, ORCID_JSON, MediaType.APPLICATION_JSON})
 @Consumes(value = {VND_ORCID_JSON, ORCID_JSON, MediaType.APPLICATION_JSON})
 @Path(WEBHOOKS_PATH)
 public Response registerWebhookJson(
     @PathParam("orcid") String orcid, @PathParam("webhook_uri") String webhookUri) {
   return serviceDelegator.registerWebhook(uriInfo, orcid, webhookUri);
 }