This involves several parts:
This last part gives us a cleaner uniformity to bus identifiers and package names which just feels like good practice to me.
vertx = Vertx.newVertx();
rm = new RouteMatcher();
rm.put("/:appid/hello", new HelloHandler());
rm.get("/:appid/hello", new HelloHandler());
rm.post("/:appid/hello", new HelloHandler());
rm.post("/:appid/intrareq-json", new IntraHandlerJson(vertx));
rm.post("/:appid/intrareq-jsonsmile", new IntraHandlerJsonSmile(vertx));
I copied the appid convention from the original script what is this? why are we doing this ? should we change this?
Also we may want to take care of versioning here. For both the html endpoints and the handler names. If we make breaking changes we should bump versions and consider supporting old code for at least 2 majors.
I will take 'appid' out with this issue as well. This was from the original usergrid use case. I'll have this one cleaned up today.
Agreed on the versioning. But that is more sophisticated than it seems (the way I want to do it - both pragamatically and rest-full-y) that I'll open another ticket.
Added #148 for tracking versioning.
Created #157 for tracking removal of appid
Are we done here?
Moved package names for payload and rest, more granular bus topics to…
… match packages. Closes #142