Miguel Grinberg

Results 484 comments of Miguel Grinberg

If you want auth to be documented automatically the only way is with flask-httpauth. But you can always add the auth information manually and use another auth extension.

No problem at all.

The argument to the response decorator is a marshmallow schema. It looks like you are passing the class of an object you want to return instead.

Try using the `Schema` class from the Flask-Marshmallow extension. See the examples in this repository for guidance.

Release notes: - APIs - Remove deprecated `if_primary_term`, `if_seq_no` and `op_type` from Create API - Remove deprecated `stored_fields` from Get Source API - Add `require_data_stream` to Index API - Remove...

Examples have to be handled manually at this time.

Have you seen how I do this? https://github.com/miguelgrinberg/microblog-api/blob/main/api/users.py#L73.

The args that the endpoint receives are already parsed. You are trying to parse them again and that is why you get the error. Once again, have a look at...

Oh, this is interesting, not sure how nobody else noticed this. Many years ago, this project originated as a generalization of Flask-SocketIO, which is specific to Flask. I missed changing...

CORS with wildcards is not directly supported by the CORS specification, so it has to be implemented as a server-side extension. Unfortunately this is not available in the CORS support...