{"action":"opened","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1997","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1997/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1997/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1997/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/1997","id":105981729,"number":1997,"title":"API servlet mapping","user":{"login":"cbornet","id":11633333,"avatar_url":"https://avatars.githubusercontent.com/u/11633333?v=3","gravatar_id":"","url":"https://api.github.com/users/cbornet","html_url":"https://github.com/cbornet","followers_url":"https://api.github.com/users/cbornet/followers","following_url":"https://api.github.com/users/cbornet/following{/other_user}","gists_url":"https://api.github.com/users/cbornet/gists{/gist_id}","starred_url":"https://api.github.com/users/cbornet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbornet/subscriptions","organizations_url":"https://api.github.com/users/cbornet/orgs","repos_url":"https://api.github.com/users/cbornet/repos","events_url":"https://api.github.com/users/cbornet/events{/privacy}","received_events_url":"https://api.github.com/users/cbornet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-11T10:08:28Z","updated_at":"2015-09-11T10:08:28Z","closed_at":null,"body":"Currently the api is served on \"/\" and the rest controllers include a \"/api\" in there request mapping.\r\nWouldn't it be cleaner to have these controllers served on \"/api\" ?\r\nIt would also be better for the swagger doc as the \"/api\" could be set in the basePath field and the resource paths would not include it.\r\n\r\nConcrete use case : I use a front proxy to version my api and I make mappings from http://myDomain.com/api/v1.0 to http://locaIP/api. I use swagger to document and publish my API and it would be easier to just change the basePath instead of changing every resource paths in the swagger.json"}}