REST API - Team Cambodia

From Coder Merlin
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

Overview[edit]

An API (Application Programming Interface) is an application program that provides the connection between software applications and computers as well.

Example[edit]

Imagine you are at a restaurant, the kitchen would be the server while the waiter would be an API who takes your orders as the customer, the client, to the cooks in the kitchen. The API in this example behaved as the connection between the server and the client and demonstrates its use for communicating between software applications.

REST API[edit]

A REST API (Representational State Transfer) is a simplistic and standardized service that is flexible to the client's needs for an API.

Key Constraints[edit]

Client-Server[edit]

This constraints requires that the server and the client are separate from each other and that they need to update themselves on their own.

Stateless[edit]

Cache[edit]

Cache is data stored on computers or browsers that makes user experience more efficient. For example, if you log into YouTube for the first time on your browser, it would ask you to log into your account. But say you log in again on the same browser, you would probably already be logged into your account. Cache is saved data that helps with user experience. Cache is important with REST API because REST API is more efficient because it uses cached data that way the main responsibility for REST is to only communicate between server and client, and not having to worried about already saved data only used by users.

Uniform Interface[edit]
Layered System[edit]
Code-On-Demand[edit]

This is a work in progress. Check back later!

Resources[edit]

https://www.mulesoft.com/resources/api/restful-api

https://www.mulesoft.com/resources/api/what-is-an-api

https://www.youtube.com/watch?v=lsMQRaeKNDk