How to design a api?

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

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 Y. [email protected] wrote:

“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


David A. Prasetya
RoR Developers

skype: david.angga
phone: +62 85 222 1 5555 2
*

You should checkout Edge Rails. edgeguides.rubyonrails.org/
api_app.html has some interesting information.

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 :slight_smile:

Cheers
Martin

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 W. [email protected]

and take a look at github’s API design here: http://develop.github.com/

so i dont think thats a good api.

http://groups.google.com/group/rubyonrails-talk?hl=en.


*Ըϲͬ!

ʯҾ
ϢѧԺ ϵӦ÷
Dalian NEUSOFT Institute of Information
й-԰·8
ʱࣺ116023
*Mail:[email protected] [email protected]
Phone:15242613529

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs