# -*- coding: utf-8 -*-
'''
Created on Sep 2, 2013

@author: ymh
'''
from p4l.api.serializers import RecordSerializer
from p4l.models import Record
from rest_framework import viewsets

class RecordViewSet(viewsets.ModelViewSet):
    '''
    API endpoint that allow Record to be viewed or edited
    '''

    queryset = Record.objects.all()
    serializer_class = RecordSerializer
    lookup_field = 'identifier'
