Created some template http endpoints for the api and a serializer for the Song model class
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
from rest_framework import serializers
|
||||
from .models import Song
|
||||
|
||||
class SongSerialzer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = Song
|
||||
fields = ('id', 'title', 'albumn', 'year', 'genre', 'track_number', 'file')
|
||||
Reference in New Issue
Block a user