Beginners guide to creating a REST service API (including RESTful authentication) [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this questionI would like to create an API. I would like it to be a REST API. However, I don't know the first thing about creating an API. Especially one that involves authentication. I'm looking for a guide that can help me understand how and why I should build my API a certain way.
as far as i know.. using rest there is no restriction of HOW to build a REST API, i mean, it's really up to you. I've seen web services that use XML,JSON and even there are some of them work directly on JS.
The idea of an API is that any program could use the services that you're publishing. Since REST uses the HTTP protocol, you can use the basic http authentication (session cookies and all that stuff), although sometimes web services use a public/private key instead
I'd say that the best guide when creating an API is to learn how to use another one .. the web services proposed by flickr are a good start... but if you really need something more exact, there are always good books about it
Good luck and have fun!
Your question is very broad. There are lots of questions here about building RESTful systems. Read some and try and ask more specific questions and we will try and help.
See the REST Tag Wiki for links to useful resources.
精彩评论