Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.89 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.89 KB

REST APIs

The glue between the frontend and backend

FAQs

What is an API?

An Application Program Interface (API) is a set of defined functions that access data, perform operations, and decouple applications, e.g., a library.

What is REST?

Representational State Transfer (REST) is a software architecture for developing web services.

What exactly is RESTful programming?

What is a REST API?

Bringing these two concepts together, a REST API is a web service that has defined functions to retrieve data and perform operations. They decouple applications and works as a middle man between the frontend and the backend.

diagram

A Beginner’s Tutorial for Understanding RESTful API

How are they made?

They can be developed in most of the popular programming languages and are usually paired with a web framework. Some examples of this are Java and Spring, Javascript and Node/Express, and Python and Flask.

Where do they live?

REST APIs live on the backend. This means they generally run on a remote server.

How do you access them?

Generally, REST APIs use the HTTP protocol to communicate with the outside world. Each action will be assigned a URL path and accessed by a GET/POST/PUT/DELETE method. A great tool for working with APIs is Postman.

What is Postman?

Postman is an API development app that presents an easy to read GUI for users to construct requests and read responses.

Exercise

To create your own sample REST API please follow this exercise.