What’s the difference between HTTP API and REST API?

652 views

What’s the difference between HTTP API and REST API?

In: Technology

2 Answers

Anonymous 0 Comments

All ( within reason ) REST api’s are http api’s, but not the reverse.

An HTTP API is any API that is built on the HTTP protocol. A REST API is a specific API design that treats all endpoints as stateless resources that can be manipulated using a uniform set of predefined operations.

Anonymous 0 Comments

An HTTP API is an API that works over the HTTP protocol.

A REST API is an API that works over the HTTP Protocol with certain design models.

It’s like asking what the difference is between an automobile and an SUV. All SUV’s are automobiles, but not all automobiles are SUV’s.