An API endpoint is a network-accessible path linked to a function. The function receives an HTTP request, performs application work, and returns a response. section 10.1
A Flask application can begin with a base route such as /, returning a simple response before any database connection exists. This iterative step verifies that the server and route work. section 10.1.3
Endpoints connect HTTP operations to application and database behavior:
- A POST request to /articles accepts JSON in the request body and creates an article. section 10.4.3
Creating a restaurant review
Send JSON containing an author ID, date, restaurant name, review, score, and title to POST /articles. The endpoint creates the article and returns its generated ID with the stored fields.

























