Here’s a useful list of resources on how to create an API, categorized by programming language.
As an API Marketplace, Mashape helps developers discover, consume, distribute, and monetize private and public APIs. We hope that the tutorials below would help you in your API journey.
(If you’re looking for examples of APIs, check here for a list of face recognition APIs)
Node.js
- http://blog.modulus.io/nodejs-and-express-create-rest-api (May 2013)
- http://synthmedia.co.uk/blog/basic-nodejs-api-with-restify-and-save (May 2013)
- http://webapplog.com/tutorial-node-js-and-mongodb-json-rest-api-server-with-mongoskin-and-express-js/ (Jul 2013)
- http://thewayofcode.wordpress.com/2013/04/21/how-to-build-and-test-rest-api-with-nodejs-express-mocha/ (Apr 2013)
- http://webapplog.com/intro-to-express-js-simple-rest-api-app-with-monk-and-mongodb/ (Apr 2013)
- http://stackoverflow.com/questions/14990544/how-to-best-create-a-restful-api-in-node-js (Feb 2013)
- http://erichonorez.wordpress.com/2013/02/10/how-create-a-rest-api-with-node-js-and-express/ (Feb 2013)
- http://benaugarten.com/blog/2013/01/31/restful-a-better-rest-api-using-node-dot-js-with-express/ (Jan 2013)
- http://coenraets.org/blog/2012/10/creating-a-rest-api-using-node-js-express-and-mongodb/ (Nov 2012)
- http://pixelhandler.com/blog/2012/02/09/develop-a-restful-api-using-node-js-with-express-and-mongoose/ (Feb 2012)
PHP
- http://coreymaynard.com/blog/creating-a-restful-api-with-php/ (May 2013)
- http://net.tutsplus.com/tutorials/php/creating-an-api-centric-web-application/ (2011)
- http://www.youtube.com/watch?v=vJVQi7ZFSaQ (2010)
- http://blog.andreaolivato.net/programming/create-your-first-api-set-in-php.html (2009)
- http://www.gen-x-design.com/archives/create-a-rest-api-with-php/ (Feb 2009)
- http://www.particletree.com/features/how-to-add-an-api-to-your-web-service/ (2009)
- http://www.recessframework.org/page/towards-restful-php-5-basic-tips (2008)
- http://www.codewalkers.com/c/a/Miscellaneous/Create-Your-Own-Custom-API/ (2005)
Python
- http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask (May 2013)
- http://gotofritz.net/blog/weekly-challenge/restful-python-api-bottle/ (2012)
- http://blog.webspecies.co.uk/2011-06-15/restful-web-services-with-python-the-easy-way.html (2011)
- http://myadventuresincoding.wordpress.com/2011/01/02/creating-a-rest-api-in-python-using-bottle-and-mongodb/ (2011)
- http://www.robertshady.com/content/creating-very-basic-api-using-python-django-and-piston (2010)
Rails
- http://collectiveidea.com/blog/archives/2013/06/13/building-awesome-rails-apis-part-1/ (Jun 2013)
- http://www.emilsoman.com/blog/2013/05/18/building-a-tested/ (May 2013)
- http://railsware.com/blog/2013/04/08/api-with-ruby-on-rails-useful-tricks/ (Apr 2013)
- http://mt.gomiso.com/2011/06/27/building-a-platform-api-on-rails/ (2011)
- http://www.whatcodecraves.com/articles/2008/11/25/how-to-make-an-api-for-a-rails-app (2008)
- http://www.xml.com/pub/a/2006/04/19/rest-on-rails.html?page=3 (2006)
ASP.NET Web API (C#/.NET)
- http://www.windowsazure.com/en-us/develop/net/tutorials/rest-service-using-web-api/ (Jun 2013)
- http://blog.ploeh.dk/2013/08/23/how-to-create-a-pure-f-aspnet-web-api-project/ (Aug 2013)
- http://dotnet.dzone.com/articles/web-api-aspnet-web-forms (May 2013)
- http://www.contentedcoder.com/2013/03/creating-your-first-web-api.html (Apr 2013)
- http://www.codeproject.com/Articles/549152/Introduction-to-ASP-NET-Web-API (Mar 2013)
- http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api (2012)
- http://www.asp.net/web-api/overview/creating-web-apis/creating-a-web-api-that-supports-crud-operations (2012)
- http://www.asp.net/web-api/overview/creating-web-apis/using-web-api-with-entity-framework/using-web-api-with-entity-framework,-part-1 (2012)
- https://github.com/Factual/factual-csharp-driver/wiki/ASP.NET-Web-API-with-Factual-Driver-Example (2012)
Java
- http://www.ibm.com/developerworks/training/kp/j-kp-rest/
- http://static.springsource.org/spring/docs/3.0.0.M3/spring-framework-reference/html/ch18s02.html
- http://docs.oracle.com/javaee/6/tutorial/doc/giepu.html
- http://www.myeclipseide.com/documentation/quickstarts/webservices_rest/
- http://rest.elkstein.org/2008/02/using-rest-in-java.html
Are there useful tutorials on creating APIs that should be here? Let Chris know! - chris@mashape.com