HTTP and REST APIs

Lesson 04 · 11 min

REST: resources and routes

A noun in the path, a verb in the method. /users, not /getAllUsers.

11 minLesson 4 of 9Practice includedAsk AI on any point

REST is a convention for naming routes. A resource is a plural noun: /users, /orders. The action is the method. One record is an id in the path: /users/42. A nested resource goes through the path: /users/42/orders.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.