HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
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()