You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expanded the "Building an API - Part II" section in the documentation to include detailed steps for creating an endpoint for the album model. This includes modifications to the 'music.urls.py' file in order to add routing for the newly created AlbumViewSet.
Copy file name to clipboardExpand all lines: docs/images/index.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -313,8 +313,30 @@ Congratulations now you have your first api working.
313
313
- ⏳ Time for rest and informal discussions.
314
314
315
315
## Building an API - Part II
316
-
Ok, so now we are going to create the apis for the other 2 models album and song model.
317
316
317
+
318
+
Now that you've explored some of the shortcuts provided by DRF, let's delve into creating an endpoint for the album model using a plain Serializer, without relying heavily on shortcuts.
319
+
320
+
Let's start by the urls part. We gonna need to add the new route to our `music.urls.py`. Now it should look like this.
0 commit comments