Contenu du cours
Professional Web API with Flask
Professional Web API with Flask
3. Flask-Smorest and Schemas
6. Deployment
User and Player Endpoints
User Endpoints
We will continue implementing functionality for our endpoints. Let's start with the User. Let's quickly define the GET methods and specify the schemas in the Blueprint response decorators.
python
Player Endpoints
Now let's move on to Player. We quickly define the GET methods and import models and schema in the resources/player.py.
python
DELETE Method
let's handle the DELETE method. We literally repeat the functionality from the TeamView.
python
CREATE Method
python
UPDATE Method
python
In the next chapter, we will get acquainted with new functionality for the quick and convenient creation of documentation for our API.
Tout était clair ?
Merci pour vos commentaires !
Section 4. Chapitre 6