Initial work on swagger
Added some fixes to make it work with the codegen
Multiple REST endpoints (one per version)