flask-restplus icon indicating copy to clipboard operation
flask-restplus copied to clipboard

The name of the body can only be called payload?

Open ELvisZxc opened this issue 5 years ago • 3 comments

In the generated document, the name of the body can only be called payload? I want change the name to make more sense.

@au.route('/authenticate')                            
@au.response(400, 'params error')                     
class Authenticate(Resource):                         
    @au.doc('Get a accessToken')                      
    @au.doc(body=auth)                                
    @au.marshal_with(token)                           
    def post(self):

ELvisZxc avatar Mar 27 '19 07:03 ELvisZxc

Thank you for using Flask-RESTPlus, however I am unsure exactly what the issue is here. Could you please provide an example of the current behaviour and an example of the desired behaviour?

SteadBytes avatar Apr 29 '19 19:04 SteadBytes

I think he is referring to the payload in SwaggerUI:

flask-restplus-payload

dinkopehar avatar May 09 '19 14:05 dinkopehar

any a solution for this?

SatiyaWP avatar Jan 16 '20 02:01 SatiyaWP