mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-16 19:59:25 +08:00
vault backup: 2024-11-02 18:24:18
Affected files: docs/Guides/Django REST Framework/7 - Writing API Endpoints.md
This commit is contained in:
parent
086fc8da2e
commit
51fd71778b
1 changed files with 3 additions and 1 deletions
|
@ -83,4 +83,6 @@ If you're just starting off, this isn't something you should be too worried abou
|
|||
### Views
|
||||
If serializers convert the underlying model to JSON, then views return the web response.
|
||||
![](_resources/7%20-%20Writing%20API%20Endpoints/9bb3d5c0c6da24a9d80d81d1e5b4a716_MD5.jpeg)
|
||||
Views take in HTTP requests passed in from the actual URL.
|
||||
Views take in HTTP requests passed in from the actual URL. You can specify a `queryset` to define what objects to return and specify a serializer which will be used to structure the returned data.
|
||||
|
||||
You can also
|
Loading…
Reference in a new issue