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 :)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store