api views and serializer