Vonage / vonage-java-code-snippets

Java code examples for using Vonage
MIT License
11 stars 31 forks source link

DLR Webhook #11

Closed judy2k closed 7 years ago

judy2k commented 7 years ago

Add a webhook for printing out DLR get and post calls, using the Spark microframework.

ChrisGuzman commented 7 years ago

Why Spark and not Spring boot or something else like it?

judy2k commented 7 years ago

I picked Spark over Play because the dependencies seemed simpler. I did briefly consider Spring Boot, but I just preferred the style of code in Spark, and the brevity of the code is nice.

Obviously the downside is that it's a relatively niche framework, but I don't think it's difficult to understand what's going on? ... and it allows us to get to the point of writing the webhooks with minimal boilerplate.