Beginner's Guide to Creating a REST Service API (including RESTful Authentication)

I would like to create an API. I would like it to be a REST API. However, I do not know, first of all, about creating an API. This is especially true of authentication. I am looking for a guide to help me understand how and why I should build my API in a certain way.

+4
source share
2 answers

as far as I know. Using rest, there are no restrictions HOW to build a REST API, I mean, it really depends on you. I have seen web services that use XML, JSON, and even some of them work directly on JS.

The idea behind the API is that any program can use the services you publish. Since REST uses the HTTP protocol, you can use basic HTTP authentication (session cookies and all these things), although sometimes web services use a public / private key instead

I would say that the best guide when creating an API is to learn how to use another. web services offered by flickr A good start ... but if you really need something more accurate, there are always good books about it

Good luck and have fun!

+1
source

Your question is very broad. There are many questions about creating RESTful systems. Read some and try to ask more specific questions, and we will try to help.

See the REST Tag Wiki link for links to useful resources.

+1
source

All Articles