Contributions
Re: How to pass array of strings in post body?
Hey instead of passing the data in parameters just try by pass in request body like this "requestBody": { "description": " User Post Object", "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "ID": { "type": "string", "format": "string" } } } } }, "produces": [ "application/json" ],6.8KViews0likes0CommentsHow to pass the header application/json in Get method of swagger.json
Hey all i just want to integrate my flask rest api in swagger by using flask_swagger_ui I had already integrated few api but when i'm hitting the "Get" method api, i'm getting error "None type object" i am passing the id as parameter but it is expecting the data in the form of json Can anyone help me how to pass the headers i.e., application/json for Get method in swagger.json file563Views0likes0Comments