Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • Oct 04 19:52
    seanieb commented #475
  • Oct 03 10:57
    HenriBlacksmith commented #475
  • Sep 30 02:40
    YUMEYA commented #467
  • Sep 30 01:39
    TreeKat71 closed #450
  • Sep 28 07:43
    ziirish commented #474
  • Sep 28 07:33
    ziirish commented #474
  • Sep 27 07:07
    nicksonthc commented #208
  • Sep 26 12:05
    peter-doggart commented #476
  • Sep 26 10:28
    db0 commented #476
  • Sep 26 10:27
    db0 commented #476
  • Sep 26 10:27
    alicanyuksel commented #474
  • Sep 26 09:20
    peter-doggart commented #476
  • Sep 25 14:24
    db0 closed #478
  • Sep 25 14:24
    db0 commented #478
  • Sep 25 09:27
    db0 commented #462
  • Sep 25 09:26
    seanieb commented #462
  • Sep 25 01:22
    db0 edited #478
  • Sep 25 01:22
    db0 edited #478
  • Sep 25 01:21
    db0 commented #462
  • Sep 25 01:11
    db0 labeled #478
Ryan Truran
OAS3 allows for one response to have multiple schemas, through the use of oneOf, anyOf, allOf, not.
Does restx currently support this?
Matthew Jacobsen
Can anyone offer some live support right now? I am having trouble with my routing. Keep getting 404 when routing to my API Blueprint, but the regular flask routes are getting reached just fine
Jamin Collins
I'm having a bit of trouble with RequestParser and how to specify that an argument is a list of strings. From what I can find, action="append" should do it, but adding this appears to drop the element from the generated Swagger documentation.
Brock Palen
Is there a flask library to generally protect against URL injection through routes? The flask security page didn't have anything that stuck out,
@j5awry @ziirish Any ETA for the next bugfix release?
Giacomo Gritzan

I currently have problems with marshalling my Responses.

I am trying to do the following:

test_model = Model(
        "_id": fields.String,
        "name": fields.String,
        "location": fields.String,
        "ip": fields.String,

success_model = Model(
    {"data": fields.List(

Without throwing any exception the data in the response is null

[{"status": "success", "data": null}']
Can somebody give me an advice?

Patrick Ray. Huang
hello all, I am new to restx, wondering when creating a model that has a one to many relationship, (e.g, order and order_items), how do i specify the field in the order model?
Tiago Tavares
Could enable the creation of models without automatically documenting, please?
It would be great to use @api.marshal_with(model) with multiple models, but not letting all of them be documented in swagger
John Chittum
FYI: i'm no longer a maintainer of python-restx. @ziirish is the final member left. I've removed my privs from Github. unfortunately, I have no time. and, honestly, i've started receiving personal emails asking about merges, etc. I don't have the capacity to deal with those.
1 reply
Honestly, at this point, flask-restx is so far behind so many projects in capabilities, even if we merged in a few things, it'd be worth users finding new frameworks
Benjamin "Ziirish" SANS
Thanks j5awry for your time and efforts so far!
And I agree with you about the new frameworks that have more traction
Piotr Borowy
I too thank for work with this framework. Do you have some proposal in some framework to use instead of RestX?
Is there any tutorials for RestX with jinja as I am not able to find any documentaion on google for some frontend with RESTX.
Tiago Tavares
Which ones should I use
I agree. Restx is quite limited
Hello, can someone helpme with a Wildcard setting?
What i'm trying to do is to specify the structure of my Wildcard, i want it to be input* instead of just *
This message was deleted
from flask import Flask
from flask_restx import Resource, Api, fields

api = Api()
app = Flask(__name__)

input_model = api.model('Input', {
    'type': fields.String,
    'topic': fields.String,

output_model = api.model('Output', {
    'type': fields.String,
    'topic': fields.String,

class Input(Resource):
    @api.marshal_with(input_model, envelope='resource')
    def get(self):
        return {'hello': 'world'}

class Output(Resource):
    @api.marshal_with(output_model, envelope='resource')
    def get(self):
        return {'hello': 'world'}

control_model = api.model('Control', {
    'name': fields.String,
    'address': fields.String,
    'inputs': fields.Wildcard(fields.Nested(input_model)),
    'outputs': fields.Wildcard(fields.Nested(output_model)),

class Control(Resource):
    @api.marshal_with(control_model, envelope='resource')
    def get(self):
        return {'hello': 'world'}

if __name__ == '__main__':
This is the structure on swagger
I want instead of * have input* and output*, to accept a object like
control = {
 'name': 'Main Control',
 'address': '',