Join For Free

Three Ways API-First Development is the Future of Web Development Posted 1 day ago

Over the past decade their have been a number of different web development paradigms. As the craft of web development has evolved so have the ways of designing and structuring software architecture. API First design is an approach to software development that emphasizes building components of your application as APIs.

This approach has a number of advantages:

Separation of Concerns

API First design is the formal separation of the front end from the back end. For instance Mashape.com is separated into two two github repos, one for the front end and one for the back end, which interact through a well defined API. Similar to the Model View Controller paradigm, by decoupling data from logic from presentation, it forces a better code architecture, which in the long term decreases your technical debt. API-First design makes it easy to push data to multiple views, regardless of size or functionality.

Specialization

Industries move forward when knowledge can be ‘black boxed’. Imagine if, to build a web application, you had to know how to build the microchips from scratch. But thanks to specialization and division of labor all you need to focus on is the code. This is the advantage of API First design. Developers only need to know the requests and responses sequences of the API endpoints. This approach frees up the front end dev team to focus on a few specific ways to interact with the data, and the back end team can focus on providing it in a RESTful manner.

Modularity

Why limit yourself to just one source of data? With modern web practices you can easily combine multiple APIs to make a powerful site fast. And if your needs change, so can the app, by simply adding or removing an API. Plus the modular approach decreases the difficulty of scaling up your application.

API First design is a step forward in building high performance websites. And if you need inspiration for websites to build, check out our extensive catalog of APIs at Mashape.

API Glossary Posted 1 week ago

image

When it comes to APIs, there’s a lot of jargon out there. The meaning of certain terms isn’t always obvious, and API providers sometimes use different ones to refer to the same thing.

That’s why we created an API glossary. It contains the terminology we use on our site and in our documentation, as well as related words and common acronyms.

- If you’re just starting out with APIs you can get the foundational knowledge you need to dive right into API use, design, and development.

- If you need to explain APIs to a non-technical, instead of mumbling something from the RFC, you can find useful and authoritative definitions all in one place.

- If you’re looking to make your own API this can help structure your thinking and design patterns, as well as improve your documentation.

It’s hosted on Github so anyone can contribute through a pull request or by submitting an issue.

And once you’re done learning about APIs at the glossary, get some hands on experience at Mashape. Sign up for a free account today.

Mashape was at the biggest #hackathon ever! LAHacks was phenomenal, and we made sure to document the fun. 

Also our very own Montana Flynn gave a presentation on Making APIs that Developers Love. Check out the slides!

Five Bitcoin APIs for the Revolution Posted 1 week ago

Looking to smash fiat currency? Or just want to include the cool new distributed payment system in your next app? We can help. Check out these five APIs that tap into the power of Bitcoin.

Bitcoin Average

Get a weighted average from Bitcoin exchanges around the world. Includes different currencies and exchange volume.

Trusted Coin

M-of-N transactions are an important step in adding greater security to the Bitcoin ecosystem. By splitting private keys among multiple parties it makes theft much more difficult, as well as empowering developers to add alerts and create flexible security.

Coinbase

With more than 1,000,000 consumer wallets Coinbase is one of the largest Bitcoin exchanges, and you can use that power in your services through this API.

Bips

Send Bitcoin payments securely through bips, one of the largest Bitcoin Payment Service Providers, as well as checking balances and creating invoices for your wallets.

Gitcoin

Show your favorite open source developers and projects some love by contributing Bitcoin with the Gitcoin API.

Bonus: Dogechain

If you like your crypto-currencies with more meme references we’ve got you covered - the API for Dogechain can give you info on addresses, recent transactions, network difficulty, and more.

We’ve got more API’s than just these, so sign up today to start powering your application with Mashape and BTC! 

Unirest for .NET platforms has been unified Posted 5 months ago

image

We’re happy to announce that the Unirest library for .NET and RT (“windows 8”) has been merged!  This was possible thanks to Lionel Ringenbach’s contribution :)  

Lionel is a C#/XAML developer based in Switzerland.  He enjoys developing for Microsoft platforms (mobile, tablets, desktop).  He loved to code because "it is the most creative tool that has been given to me - you think, create, and make everyday a better day!"

We’ve asked him to write the post below.  Enjoy!

Read More

30+ ways to make REST calls in Node.js, PHP, Python, Rails, Obj-C, .NET, and Java / Android Posted 5 months ago

image

Here’s a list of resources on how to make REST calls in different languages.  (We also have this list of 40+ tutorials on how to create an API in different languages).

If you dabble with one or more of these languages in your different projects, we highly recommend that you check out Unirest.io, an open source lightweight HTTP client library.  It’s goal is to provide a consistent way for developers to make HTTP calls across different languages (node.js, Ruby, PHP, Java, Python, Objective-C, .NET)

If you have suggested additions to the links below, please tweet to @mashape and we’ll add it here!

Read More

List of 40+ tutorials on how to create an API Posted 7 months ago

image

Here’s a useful list of resources on how to create an API, categorized by programming language. (We also have a post on 30+ ways to make a REST call in different languages)

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 

  1. http://flippinawesome.org/2013/09/23/easy-api-scaffolding-with-simple-api-and-node-js/
  2. http://blog.modulus.io/nodejs-and-express-create-rest-api (May 2013)
  3. http://synthmedia.co.uk/blog/basic-nodejs-api-with-restify-and-save (May 2013)
  4. http://webapplog.com/tutorial-node-js-and-mongodb-json-rest-api-server-with-mongoskin-and-express-js/ (Jul 2013)
  5. http://thewayofcode.wordpress.com/2013/04/21/how-to-build-and-test-rest-api-with-nodejs-express-mocha/ (Apr 2013)
  6. http://webapplog.com/intro-to-express-js-simple-rest-api-app-with-monk-and-mongodb/ (Apr 2013)
  7. http://stackoverflow.com/questions/14990544/how-to-best-create-a-restful-api-in-node-js (Feb 2013)
  8. http://erichonorez.wordpress.com/2013/02/10/how-create-a-rest-api-with-node-js-and-express/ (Feb 2013)
  9. http://benaugarten.com/blog/2013/01/31/restful-a-better-rest-api-using-node-dot-js-with-express/ (Jan 2013)
  10. http://coenraets.org/blog/2012/10/creating-a-rest-api-using-node-js-express-and-mongodb/ (Nov 2012)
  11. http://pixelhandler.com/blog/2012/02/09/develop-a-restful-api-using-node-js-with-express-and-mongoose/ (Feb 2012)

PHP

  1. http://coreymaynard.com/blog/creating-a-restful-api-with-php/ (May 2013)
  2. http://net.tutsplus.com/tutorials/php/creating-an-api-centric-web-application/ (2011)
  3. http://www.youtube.com/watch?v=vJVQi7ZFSaQ (2010)
  4. http://blog.andreaolivato.net/programming/create-your-first-api-set-in-php.html (2009)
  5. http://www.gen-x-design.com/archives/create-a-rest-api-with-php/ (Feb 2009)
  6. http://www.particletree.com/features/how-to-add-an-api-to-your-web-service/ (2009)
  7. http://www.recessframework.org/page/towards-restful-php-5-basic-tips (2008)
  8. http://www.codewalkers.com/c/a/Miscellaneous/Create-Your-Own-Custom-API/ (2005)

Python

  1. http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask (May 2013)
  2. http://gotofritz.net/blog/weekly-challenge/restful-python-api-bottle/ (2012)
  3. http://blog.webspecies.co.uk/2011-06-15/restful-web-services-with-python-the-easy-way.html (2011)
  4. http://myadventuresincoding.wordpress.com/2011/01/02/creating-a-rest-api-in-python-using-bottle-and-mongodb/ (2011)
  5. http://www.robertshady.com/content/creating-very-basic-api-using-python-django-and-piston (2010)

Rails

  1. http://collectiveidea.com/blog/archives/2013/06/13/building-awesome-rails-apis-part-1/ (Jun 2013)
  2. http://www.emilsoman.com/blog/2013/05/18/building-a-tested/ (May 2013)
  3. http://railsware.com/blog/2013/04/08/api-with-ruby-on-rails-useful-tricks/ (Apr 2013)
  4. http://mt.gomiso.com/2011/06/27/building-a-platform-api-on-rails/ (2011)
  5. http://www.whatcodecraves.com/articles/2008/11/25/how-to-make-an-api-for-a-rails-app (2008)
  6. http://www.xml.com/pub/a/2006/04/19/rest-on-rails.html?page=3 (2006)

ASP.NET Web API (C#/.NET)

  1. http://www.windowsazure.com/en-us/develop/net/tutorials/rest-service-using-web-api/ (Jun 2013)
  2. http://blog.ploeh.dk/2013/08/23/how-to-create-a-pure-f-aspnet-web-api-project/ (Aug 2013)
  3. http://dotnet.dzone.com/articles/web-api-aspnet-web-forms (May 2013)
  4. http://www.contentedcoder.com/2013/03/creating-your-first-web-api.html (Apr 2013)
  5. http://www.codeproject.com/Articles/549152/Introduction-to-ASP-NET-Web-API (Mar 2013)
  6. http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api (2012)
  7. http://www.asp.net/web-api/overview/creating-web-apis/creating-a-web-api-that-supports-crud-operations (2012)
  8. 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)
  9. https://github.com/Factual/factual-csharp-driver/wiki/ASP.NET-Web-API-with-Factual-Driver-Example (2012)

Java

  1. http://www.ibm.com/developerworks/training/kp/j-kp-rest/
  2. http://static.springsource.org/spring/docs/3.0.0.M3/spring-framework-reference/html/ch18s02.html
  3. http://docs.oracle.com/javaee/6/tutorial/doc/giepu.html
  4. http://www.myeclipseide.com/documentation/quickstarts/webservices_rest/
  5. http://rest.elkstein.org/2008/02/using-rest-in-java.html

Are there useful tutorials on creating APIs that should be here?  Please send us a tweet @mashape

List of 50+ SMS APIs Posted 9 months ago

 image

How many SMS APIs do you know about?  Apparently there are a ton of them, as you can see from the list below!  Hope this helps in your app development.

Read More

List of 50+ Face Detection / Recognition APIs, libraries, and software Posted 10 months ago

image

There has been a lot of buzz around Face Recognition since Google Glass was announced.  We believe that face recognition will open up a ton of possibilities in how we interact not just with each other, but with objects as well - whether it’s with Glass or not.

To help you in your journey of exploring face recognition, we have below a long list of face detection and recognition APIs that you can use for your applications.  Enjoy!

Read More

Unirest for .NET (C#, VB.NET, etc) Desktop and Windows 8 apps Posted 10 months ago

After the successful launch of Unirest, an open source lightweight http client library, we received a lot of requests for a C# .NET port on Windows Desktop and Windows 8.  Even before we got to work, we’ve received contributions from the open source community who ported Unirest to .NET.

This tutorial will show you how to use the Windows 8 (RT) port of Unirest in your application (We will follow this up with the Windows Desktop port in a later post, but it will follow pretty much the same steps).  Let’s get started!

Read More