Skip to content

Glossary: Django Beyond the Basics

@api_view

Also written: api_view

A DRF decorator that turns a plain function into an API view for the HTTP methods you list. The `menu` function uses `@api_view(["GET"])`.

Where the book teaches it

Related terms

APIViewResponse