AudioFileSerializer

class apirest.audiofile_serializers.AudioFileSerializer(instance=None, data=<class rest_framework.fields.empty>, **kwargs)

Read:

CURL Usage:

curl -u username:password -H 'Accept: application/json' http://HOSTNAME_IP/rest-api/audio-files/

curl -u username:password -H 'Accept: application/json' http://HOSTNAME_IP/rest-api/audio-files/%audio-files-id%/

Response:

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "url": "http://HOSTNAME_IP/rest-api/audio-files/1/",
            "name": "Sample audio",
            "audio_file": "upload/audiofiles/audio-file-SODXT-1669906647.wav",
            "user": "http://HOSTNAME_IP/rest-api/users/1/",
            "created_date": "2016-01-14T18:56:58.550",
            "updated_date": "2016-01-14T18:56:58.969"
        }
    ]
}