Can I host a restful service in a main method? It doesn't have to be Jackson.
I looked around for examples, but couldn't find any. I remember that for Servlets I need a web server, but it would be awesome if I can host a web service in a main method. It's just a simple method.
The data is static (imagine a hashtable with 900k elements).It is loaded from a json file (long story).
The method serves one element from the hash table by key.