The difference between an API and a REST API

636 views

The difference between an API and a REST API

In: 198

15 Answers

Anonymous 0 Comments

REST API should revolve around resources/objects, so the endpoint should look something like:

/companies/321/departments/567

Then you have the method which determines what you’re doing to the resource, like:

GET (to read), POST (to create), PUT (to update), and DELETE (to delete).

You are viewing 1 out of 15 answers, click here to view all answers.