ITRadio/server/proj/account/schemas.py

21 lines
681 B
Python

from rest_framework.schemas import AutoSchema
import coreapi
import coreschema
""" class PlayListSchema(AutoSchema):
def get_serializer_fields(self, path, method):
return [
coreapi.Field(
name='playlist_id',
location='form',
required=False,
schema=coreschema.Integer(description='ID плейлиста')
),
coreapi.Field(
name='songs_id',
location='form',
required=False,
schema=coreschema.Array(description='ID треков')
),
] """