{"action":"opened","issue":{"url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1056","labels_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1056/labels{/name}","comments_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1056/comments","events_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1056/events","html_url":"https://github.com/restlet/restlet-framework-java/issues/1056","id":69548142,"number":1056,"title":"What are the annotations in Restlet framework?","user":{"login":"ggeetha","id":8552994,"avatar_url":"https://avatars.githubusercontent.com/u/8552994?v=3","gravatar_id":"","url":"https://api.github.com/users/ggeetha","html_url":"https://github.com/ggeetha","followers_url":"https://api.github.com/users/ggeetha/followers","following_url":"https://api.github.com/users/ggeetha/following{/other_user}","gists_url":"https://api.github.com/users/ggeetha/gists{/gist_id}","starred_url":"https://api.github.com/users/ggeetha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggeetha/subscriptions","organizations_url":"https://api.github.com/users/ggeetha/orgs","repos_url":"https://api.github.com/users/ggeetha/repos","events_url":"https://api.github.com/users/ggeetha/events{/privacy}","received_events_url":"https://api.github.com/users/ggeetha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-20T09:36:57Z","updated_at":"2015-04-20T09:36:57Z","closed_at":null,"body":"What are the Restlet Annotations available for API Versioning? And also How to map the version from the API with my source code?\r\n\r\nIf my API looks like this : http://localhost:8080/example.com/v2/hello\r\nThen In my source code how to map the version with appropriate functionality?\r\nFor example :\r\nIf(version == 1) {//Do Version 1 Source Code}\r\nelse If(version == 2) {//Do Version 2 Source Code}\r\nelse If(version == 3) {//Do Version 3 Source Code} ………..\r\nIf I did like this, Then why we are going for Versioning. We can implement Manually Right? And also If I have to add some 100 versions, then the code looks uglier and it becomes lengthier.\r\nI get confused how to map the version in Source Code. Please Clarify my doubt.\r\n\r\nRegards,\r\nGeetha.\r\n"}}