flask-restplus

How to pass a parameter from client side to server in python

How to pass a parameter from client side to server in python Question: I am using flask and flask-restx try to create a protocol to get a specific string from another service. I am wonder if there is a way I can pass the parameter from another function to server side. For example, here’s my …

Total answers: 2

How to return a nested json response in Flask-Restx

How to return a nested json response in Flask-Restx Question: I am trying to make an API with Flask-RestX that can show a response like this, { "id": 1, "msg": "How are things", "score": 345, "additional": { "goal": 56, "title": "ASking how" } } when data is like this (In my case, I do not …

Total answers: 2

How to accept None for String type field when using Flask-RESTPlus

How to accept None for String type field when using Flask-RESTPlus Question: I am just starting develop with flask-restplus and I am not a native speaker, but I will try to describe my question as clear as I can. I know there is a fields module in flask that help us define and filter response …

Total answers: 3

How to edit Flask-plus default swagger-UI text

How to edit Flask-plus default swagger-UI text Question: I am developing a simple rest api that only has two Get methods so far. It’s working fine etc, and looks pretty great when I navigate to the url thanks to the built in swagger documentation. However I do not actually see a yaml or json file …

Total answers: 2

Flask-RESTPlus – How to get query arguments?

Flask-RESTPlus – How to get query arguments? Question: I’m curious how I can take query arguments coming from the GET method in Flask-RESTPlus. I didn’t managed to find an example in the documentation. I have previously used pure flask and the way I was doing it was by calling ‘request.args.get()’ from the flask library. Any …

Total answers: 3