Let's talk about API

The first time I heard of API was when I started learning programming. The first reaction was like “API? Application program interface? So? What can we do with it?” I was completely blurred and have no idea with it.

Then, I go and research about “API”, there comes another term - RESTful. Which threw me into a deep sea of confusion. So, I decided to write a post on this to help those who struggling with the term of API or RESTful API.

From Wikipedia: In computer programming, an application programming interface (API) is a set of subroutine definitions, communication protocols, and tools for building software.

Confused? Yea, me too. In a simple explanation, API is basically a function, where you pass in parameter(s), and return you result.

Then, what is a RESTful API?

From WhatIs: A RESTful API is an application program interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data.

In a simple explanation, it is a function that uses the rules of GET, PUT, POST and DELETE to manipulate the data. Which is a function that hosted in a server on cloud.

Further reading

StackOverflow, Code Tutorial

Written on January 5, 2018
comments powered by Disqus