Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
User and Player Endpoints | Endpoints with Blueprints and MethodView
Professional Web API with Flask
course content

Зміст курсу

Professional Web API with Flask

Professional Web API with Flask

1. Introduction to the Course
2. Database and Models
3. Flask-Smorest and Schemas
4. Endpoints with Blueprints and MethodView
5. Authentication with JWT
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.

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.

DELETE Method

let's handle the DELETE method. We literally repeat the functionality from the TeamView.

CREATE Method

UPDATE Method

In the next chapter, we will get acquainted with new functionality for the quick and convenient creation of documentation for our API.

Все було зрозуміло?

Секція 4. Розділ 6
We're sorry to hear that something went wrong. What happened?
some-alt