Python API Development Fundamentals
Jack Chan Ray Chung Jack Huang更新时间:2021-06-11 12:56:47
最新章节:10: Deployment封面
版权页
Preface
About
About the Book
1. Your First Step
Learning Objectives
Introduction
Understanding API
RESTful API
HTTP Protocol
HTTP Methods and CRUD
The JSON Format
HTTP Status Codes
Open API
The Flask Web Framework
Building a Simple Recipe Management Application
Using curl or httpie to Test All the Endpoints
Postman
Summary
2. Starting to Build Our Project
Learning Objectives
Introduction
What is Flask-RESTful?
Virtual Environment
Creating a Recipe Model
Configuring Endpoints
Making HTTP Requests to the Flask API using curl and httpie
Summary
3. Manipulating a Database with SQLAlchemy
Learning Objectives
Introduction
Databases
SQL
ORM
Defining Our Models
Password Hashing
Summary
4. Authentication Services and Security with JWT
Learning Objectives
Introduction
JWT
Flask-JWT-Extended
Designing the Methods in the Recipe Model
Refresh Tokens
The User Logout Mechanism
Summary
5. Object Serialization with marshmallow
Learning Objectives
Introduction
Serialization versus Deserialization
marshmallow
A Simple Schema
UserSchema Design
RecipeSchema Design
The PATCH Method
Summary
6. Email Confirmation
Learning Objectives
Introduction
Mailgun
User Account Activation Workflow
HTML Format Email
Summary
7. Working with Images
Learning Objectives
Introduction
Building the User Avatar Function
Flask-Uploads
Image Resizing and Compression
Introduction to Pillow
Summary
8. Pagination Searching and Ordering
Learning Objectives
Introduction
Pagination
Paginated APIs
Recipe Searching
Sorting and Ordering
Summary
9. Building More Features
Learning Objectives
Introduction
Caching
Flask-Caching
API Rate Limiting
Flask-Limiter
Summary
10. Deployment
Learning Objectives
Introduction
Deployment
Comparing SaaS PaaS and IaaS
The Heroku Platform
Configuration Handling in Smilecook
Heroku Application
Heroku Add-Ons
Setting Up Environment Variables for the Heroku App
Setting Up Variables in Postman
Setting up the Front-end Interface to Work with the Smilecook API
Summary
Appendix
About
1: Your First Step
2: Starting to Build Our Project
3: Manipulating a Database with SQLAlchemy
4: Authenticated Services and Security with JWTs
5: Validating APIs Using marshmallow
6: Email Confirmations
7: Working with Images
8: Pagination Searching and Ordering
9: Building More Features
10: Deployment
更新时间:2021-06-11 12:56:47