the POST route ist now bookmarks instead of bookmark
add access-control-allow-origin when using the OPTIONS method on bookmarks
add access-control-allow-headers to the OPTIONS request
correctly deal with the incoming POST which is a JSONObject inside a JSONObject
use extract method on the OPTIONS route on /
remove the collection field because the collection is accessed via BookmarkDatastore
extract method to create the routes in start()
use proper name for the method to setUp the RestServer
use proper name for the method to setUp the RestServer and correct the return value
refactor addGETAllBookmarks
use proper method name to deal with the same origin policy
refactor addBookmarkGETbyIDRoute
the method to retrieve a bookmark by id has now a proper name
refactor addBookmarkPOSTroute
remove obsolete method
extract checking if SOP allowed
refactor testGettingABookmarkViaId
organize imports in RestServer
refactor for loop into its own method
small refactoring in testGettingAllBookmarks