490+19.+REST+API
490+19.+REST+API
Primer –
RESTful APIs
LECTURE 19
RESTful APIs
REST API (aka RESTful API)
◦ An application programming interface (API) that conforms to constraints of REST architectural style and
allows for interaction with RESTful web services.
API
◦ A set of rules that define how applications or devices can connect to and communicate with each other.
Etc.
RESTful APIs and methods provide us with almost all the information we need to process a
request.
Best Practices – File Structure
Express does not follow a defined structure.
However, as the application grows in size, it will become very difficult to maintain if it doesn’t have
a well-defined structure.
The next several slides have some widely adopted “best practices” for how to structure your
Express application.
General Best Practices
● Always begin a node project with npm init