Skip to content
#

sanic

Here are 281 public repositories matching this topic...

sanic
caheredia
caheredia commented Nov 27, 2019

Adding examples responses.
I see there is a method to add responses @doc.response but is there a method to add example responses?

It would be nice if @doc.example() added example code to the OpenApi spec.

Slightly related question
Is there a way to populate the Example Value box with a real example, or will that only

smlbiobot
smlbiobot commented May 3, 2020

Based on your documentation, I should be able to force sanic-cors to show only logs at INFO level like this:

cors = CORS(app, resources={r"/static/*": {"origins": "*"}})
logging.getLogger('sanic_cors').level = logging.INFO

This works if the logging level for the app is also set to logging.INFO, but as soon as the app’s log level is set to logging.DEBUG, even with the sec

Improve this page

Add a description, image, and links to the sanic topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the sanic topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.