Glossary: Django Beyond the Basics
@action
Also written: action decorator
A DRF decorator that adds a custom action to a viewset, such as `ship` at `orders/<id>/ship/`. `detail=True` makes it work on one object, and `methods` limits the HTTP methods.