Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what points i should consider to create API for a new website i am building? [closed]

What points i should consider while building a website, and planing to support users with API to use?

I see that most of famous websites are giving developers an API to deal with, such as facebook, twitter, google, ....

There are any general points i should consider while building a new website to be able to support developers with an API? "just very general points regardless the website service its self"

UPDATE all answers below helped me a lot.

like image 940
Amr Elgarhy Avatar asked Dec 29 '22 22:12

Amr Elgarhy


1 Answers

Soap or XML

Depending on your application. If it is complex you might need the functionality of soap. KISS should apply with APIs especially. Have a sensible URL layout that makes sense in terms of resources:

www.site.com/people/london

As a resource.

http://en.wikipedia.org/wiki/Restful

Look into why using PUT, POST, GET and others is important.

Good Luck

like image 152
Aiden Bell Avatar answered Jan 01 '23 11:01

Aiden Bell