hi,everyone. now i start to design a api. the url like this http://localhost:3000/api?seckey=123&&post_id=1 the visitor need a seckey to access auth.and get info via json. so i dont think thats a good api. i need your answers.thx -- 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.
REST: http://pivotallabs.com/users/jdean/blog/articles/1419-building-a-fast-lightweight-rest-service-with-rails-3- or SOAP: http://railshackers.com/category/soap-api/ On Mon, Mar 12, 2012 at 9:58 PM, Shi Yan <hlcfan.yan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi,everyone. > now i start to design a api. > the url like this > http://localhost:3000/api?seckey=123&&post_id=1 > the visitor need a seckey to access auth.and get info via json. > so i dont think thats a good api. > i need your answers.thx > > -- > 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. > >-- *David Angga Prasetya* *RoR Developers* skype: david.angga phone: +62 85 222 1 5555 2 * * -- 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.
You should checkout Edge Rails. edgeguides.rubyonrails.org/ api_app.html has some interesting information. On Mar 12, 10:58 am, Shi Yan <hlcfan....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi,everyone. > now i start to design a api. > the url like thishttp://localhost:3000/api?seckey=123&&post_id=1 > the visitor need a seckey to access auth.and get info via json. > so i dont think thats a good api. > i need your answers.thx-- 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.
I have 2 boards on Quora that contain some useful links: http://www.quora.com/Martin-Wawrusch/REST-API-Implementer-Resources http://www.quora.com/Martin-Wawrusch/Oauth-2-Resources-For-Provider-Implementers You might also want to consider looking into this interactive book project: http://designinghypermediaapis.com and take a look at github''s API design here: http://develop.github.com/ also, read this: http://blog.steveklabnik.com/posts/2011-07-03-nobody-understands-rest-or-http and part II of it and don''t forget to use patch instead of put when applicable :) Cheers Martin On Thu, Mar 15, 2012 at 2:12 AM, iGbanam <xigbanam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You should checkout Edge Rails. edgeguides.rubyonrails.org/ > api_app.html has some interesting information. > > On Mar 12, 10:58 am, Shi Yan <hlcfan....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > hi,everyone. > > now i start to design a api. > > the url like thishttp://localhost:3000/api?seckey=123&&post_id=1 > > the visitor need a seckey to access auth.and get info via json. > > so i dont think thats a good api. > > i need your answers.thx > > -- > 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. > >-- 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.
muchas gracias all. i was considering that maybe i could use HMAC way to implement this.is it a good way. 2012/3/15 Martin Wawrusch <martin-qs6+VQBngv1Wk0Htik3J/w@public.gmane.org>> I have 2 boards on Quora that contain some useful links: > > http://www.quora.com/Martin-Wawrusch/REST-API-Implementer-Resources > > http://www.quora.com/Martin-Wawrusch/Oauth-2-Resources-For-Provider-Implementers > > > You might also want to consider looking into this interactive book > project: http://designinghypermediaapis.com > > and take a look at github''s API design here: http://develop.github.com/ > > also, read this: > http://blog.steveklabnik.com/posts/2011-07-03-nobody-understands-rest-or-http and > part II of it > > and don''t forget to use patch instead of put when applicable :) > > Cheers > Martin > > > On Thu, Mar 15, 2012 at 2:12 AM, iGbanam <xigbanam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> You should checkout Edge Rails. edgeguides.rubyonrails.org/ >> api_app.html has some interesting information. >> >> On Mar 12, 10:58 am, Shi Yan <hlcfan....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > hi,everyone. >> > now i start to design a api. >> > the url like thishttp://localhost:3000/api?seckey=123&&post_id=1 >> > the visitor need a seckey to access auth.and get info via json. >> > so i dont think thats a good api. >> > i need your answers.thx >> >> -- >> 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. >> >> > > > -- > 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. >-- *愿爱与喜悦心与你同在! 石岩敬上 大连东软信息学院 计算机系软件工程应用方向 Dalian NEUSOFT Institute of Information 中国-大连市软件园路8号 邮编:116023 **Mail:hlcfan.yan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org* <hlcfan.yan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> *Phone:15242613529* -- 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.