{"action":"created","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":[{"url":"https://api.github.com/repos/restlet/restlet-framework-java/labels/Module:%20Restlet%20API","name":"Module: Restlet API","color":"fbca04"},{"url":"https://api.github.com/repos/restlet/restlet-framework-java/labels/Priority:%20high","name":"Priority: high","color":"eb6420"},{"url":"https://api.github.com/repos/restlet/restlet-framework-java/labels/State:%20analysis","name":"State: analysis","color":"009800"},{"url":"https://api.github.com/repos/restlet/restlet-framework-java/labels/Type:%20task","name":"Type: task","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"thboileau","id":1122782,"avatar_url":"https://avatars.githubusercontent.com/u/1122782?v=3","gravatar_id":"","url":"https://api.github.com/users/thboileau","html_url":"https://github.com/thboileau","followers_url":"https://api.github.com/users/thboileau/followers","following_url":"https://api.github.com/users/thboileau/following{/other_user}","gists_url":"https://api.github.com/users/thboileau/gists{/gist_id}","starred_url":"https://api.github.com/users/thboileau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thboileau/subscriptions","organizations_url":"https://api.github.com/users/thboileau/orgs","repos_url":"https://api.github.com/users/thboileau/repos","events_url":"https://api.github.com/users/thboileau/events{/privacy}","received_events_url":"https://api.github.com/users/thboileau/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-04-20T09:36:57Z","updated_at":"2015-04-28T18:47:04Z","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\n```java\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\n```\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\nI have read that we can use annotations for handling API versioning. But I don't know what are the annotations available in restlet framework. Please let me know.\r\nRegards,\r\nGeetha.\r\n"},"comment":{"url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/comments/97167622","html_url":"https://github.com/restlet/restlet-framework-java/issues/1056#issuecomment-97167622","issue_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1056","id":97167622,"user":{"login":"jlouvel","id":374450,"avatar_url":"https://avatars.githubusercontent.com/u/374450?v=3","gravatar_id":"","url":"https://api.github.com/users/jlouvel","html_url":"https://github.com/jlouvel","followers_url":"https://api.github.com/users/jlouvel/followers","following_url":"https://api.github.com/users/jlouvel/following{/other_user}","gists_url":"https://api.github.com/users/jlouvel/gists{/gist_id}","starred_url":"https://api.github.com/users/jlouvel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlouvel/subscriptions","organizations_url":"https://api.github.com/users/jlouvel/orgs","repos_url":"https://api.github.com/users/jlouvel/repos","events_url":"https://api.github.com/users/jlouvel/events{/privacy}","received_events_url":"https://api.github.com/users/jlouvel/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T18:47:04Z","updated_at":"2015-04-28T18:47:04Z","body":"Great explanation @thboileau!\r\nCould we create an \"API versionning\" page under \"Part 2 - Core Restlet / Routing package\"?"}}