Skip to content

Instantly share code, notes, and snippets.

@tfennelly
Last active December 21, 2015 18:29
Show Gist options
  • Save tfennelly/6347252 to your computer and use it in GitHub Desktop.
Save tfennelly/6347252 to your computer and use it in GitHub Desktop.
package com.foxweave.mocksaas;
@Path("/geolocation")
@Produces("application/json")
@Consumes("application/json")
public class ContactService {
@Inject
private WEAVEHook weaveHook;
@POST
@Path("/webhook")
public void webhook(String webhookDirective) {
weaveHook.hook(webhookDirective);
}
public void notifyNewContact(Contact contact) {
weaveHook.created(contact);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment