Donovan So
1 min readFeb 23, 2020

--

It’s a good way to think about it. But note that there is more to REST, such as the methods (e.g. GET/POST/DELETE... ), the response codes (e.g. 404/503... ) etc.

Also by convention, we usually plurize the nouns. So it would be /api/users instead of /api/user. This is because we think of web resources almost like files in a folder. So /api/users would be a “folder” containing all users. To access user 12345 in the users “folder”, we would call api/users/12345 :)

--

--