Django REST framework version control

DRF version control

Why Version Control

API version control allows us to change between different client behavior (different versions of the same interface will return different data). DRF provides a number of different versions of the control scheme.

There may be some clients for some reason no longer maintained, but our back-end interface but also constantly updated iteration, this time to return different content is a good solution for version control.

DRF provides versioning scheme

DRF offers five versions of the control scheme, as shown below:

Guess you like

Origin www.cnblogs.com/Rivend/p/11875373.html