File: //home/arjun/projects/buyercall_new/buyercall/buyercall/blueprints/api/doc/endpoints/form.py
import logging
from flask_restx import Resource
from buyercall.blueprints.api.restplus import api
from buyercall.blueprints.form_leads.views import add_leads
log = logging.getLogger(__name__)
ns = api.namespace('forms', description='Operations related to external lead forms.')
@ns.route('/')
@api.doc(responses={400: 'Error performing operation.',
401: 'Unauthorized request.'},
security=None,
authorizations=None)
class ApiForms(Resource):
@api.response(204, 'Lead form successfully added.')
def post(self):
"""
For testing purposes.....
"""
add_leads()