hemant
2011-Jun-12 18:20 UTC
[ANN] RestfulRouteVersion 0.2 for making API versioning easier
Hi folks, Restful_route_version makes it easier for programmers to create different version of REStful or RESTlike APIs. It extends Rails routing api, making following possible: version_namespace :api do version_namespace(:v10,:cache_route => true) do resources :articles resources :comments resources :notes end version_namespace(:v11, :cache_route => true) do inherit_routes("/api/v10", :except => %w(articles)) resources :articles resources :tags end end But it goes beyond that, for all the inherited routes, it automatically defines new version of controllers, which inherit the previous versions. However, if you wish you can override specific controllers and actions, and it stays out the your way. It also comes with a inherited view resolver - and hence lets you have inheritable templates on Rails 3.0.x series. This is a Rails 3 compatible release of gem and should work with Rails 3.1 as well. More details: https://github.com/gnufied/restful_route_version Any questions or feedback is most welcome. -- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Satish N Kota
2011-Jun-13 06:12 UTC
RE: [Bangalore RUG] [ANN] RestfulRouteVersion 0.2 for making API versioning easier
Cool and congrats...would you like this to go on IndiaRubyConsortium? Thanks and Regards Satish Kota Administrator, IndiaRubyConsortium -----Original Message----- From: bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of hemanth Sent: Sunday, June 12, 2011 11:50 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Bangalore RUG] [ANN] RestfulRouteVersion 0.2 for making API versioning easier Hi folks, Restful_route_version makes it easier for programmers to create different version of REStful or RESTlike APIs. It extends Rails routing api, making following possible: version_namespace :api do version_namespace(:v10,:cache_route => true) do resources :articles resources :comments resources :notes end version_namespace(:v11, :cache_route => true) do inherit_routes("/api/v10", :except => %w(articles)) resources :articles resources :tags end end But it goes beyond that, for all the inherited routes, it automatically defines new version of controllers, which inherit the previous versions. However, if you wish you can override specific controllers and actions, and it stays out the your way. It also comes with a inherited view resolver - and hence lets you have inheritable templates on Rails 3.0.x series. This is a Rails 3 compatible release of gem and should work with Rails 3.1 as well. More details: https://github.com/gnufied/restful_route_version Any questions or feedback is most welcome. -- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
hemant
2011-Jun-13 09:17 UTC
Re: [Bangalore RUG] [ANN] RestfulRouteVersion 0.2 for making API versioning easier
Sure. Is there anything I need to do for that? On Mon, Jun 13, 2011 at 11:42 AM, Satish N Kota <satishkota-/m5xPaUPz0kyzzc7d281tvpXobYPEAuW@public.gmane.org> wrote:> Cool and congrats...would you like this to go on IndiaRubyConsortium? > > Thanks and Regards > Satish Kota > Administrator, IndiaRubyConsortium > > > -----Original Message----- > From: bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] > On Behalf Of hemanth > Sent: Sunday, June 12, 2011 11:50 PM > To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Subject: [Bangalore RUG] [ANN] RestfulRouteVersion 0.2 for making API > versioning easier > > Hi folks, > > Restful_route_version makes it easier for programmers to create > different version of REStful or RESTlike APIs. > > It extends Rails routing api, making following possible: > > version_namespace :api do > version_namespace(:v10,:cache_route => true) do > resources :articles > resources :comments > resources :notes > end > > version_namespace(:v11, :cache_route => true) do > inherit_routes("/api/v10", :except => %w(articles)) > resources :articles > resources :tags > end > end > > But it goes beyond that, for all the inherited routes, it > automatically defines new version of controllers, which inherit the > previous versions. However, if you wish you can override specific > controllers and actions, and it stays out the your way. It also comes > with a inherited view resolver - and hence lets you have inheritable > templates on Rails 3.0.x series. > > This is a Rails 3 compatible release of gem and should work with Rails > 3.1 as well. > > More details: > > https://github.com/gnufied/restful_route_version > > Any questions or feedback is most welcome. > > > > -- > Let them talk of their oriental summer climes of everlasting > conservatories; give me the privilege of making my own summer with my > own coals. > > http://gnufied.org > >-- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Satish N Kota
2011-Jun-14 18:27 UTC
RE: [Bangalore RUG] [ANN] RestfulRouteVersion 0.2 for making API versioning easier
Hemanth, Please provide me the following information Title: Description: Link to the Project page / Download page: Release License: Project Type: Gem / Plugin / OpenSource Project Contact Person: (Not Mandatory) Contact Email: (Not Mandatory) Contact Phone: (Not Mandatory) P.S: If you are not yet registered to the IndiaRubyConsortium (www.indiarubyconsortium.com), then please do so, I would strongly suggest as we would want to link this to your login. Thanks and Regards Satish Kota Administrator, IRCo -----Original Message----- From: bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of hemant Sent: Monday, June 13, 2011 2:48 PM To: bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Cc: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: Re: [Bangalore RUG] [ANN] RestfulRouteVersion 0.2 for making API versioning easier Sure. Is there anything I need to do for that? On Mon, Jun 13, 2011 at 11:42 AM, Satish N Kota <satishkota-/m5xPaUPz0kyzzc7d281tvpXobYPEAuW@public.gmane.org> wrote:> Cool and congrats...would you like this to go on IndiaRubyConsortium? > > Thanks and Regards > Satish Kota > Administrator, IndiaRubyConsortium > > > -----Original Message----- > From: bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] > On Behalf Of hemanth > Sent: Sunday, June 12, 2011 11:50 PM > To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; bangalorerug-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Subject: [Bangalore RUG] [ANN] RestfulRouteVersion 0.2 for making API > versioning easier > > Hi folks, > > Restful_route_version makes it easier for programmers to create > different version of REStful or RESTlike APIs. > > It extends Rails routing api, making following possible: > > version_namespace :api do > version_namespace(:v10,:cache_route => true) do > resources :articles > resources :comments > resources :notes > end > > version_namespace(:v11, :cache_route => true) do > inherit_routes("/api/v10", :except => %w(articles)) > resources :articles > resources :tags > end > end > > But it goes beyond that, for all the inherited routes, it > automatically defines new version of controllers, which inherit the > previous versions. However, if you wish you can override specific > controllers and actions, and it stays out the your way. It also comes > with a inherited view resolver - and hence lets you have inheritable > templates on Rails 3.0.x series. > > This is a Rails 3 compatible release of gem and should work with Rails > 3.1 as well. > > More details: > > https://github.com/gnufied/restful_route_version > > Any questions or feedback is most welcome. > > > > -- > Let them talk of their oriental summer climes of everlasting > conservatories; give me the privilege of making my own summer with my > own coals. > > http://gnufied.org > >-- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.