todo api with serializer