adding base api with serializers