Better handle response documentation

This commit is contained in:
jtc42 2020-01-06 22:28:00 +00:00
parent 1ccdad8a86
commit 8afb0757bd
12 changed files with 143 additions and 115 deletions

View file

@ -2,7 +2,11 @@ import logging
import os
import errno
from werkzeug.exceptions import BadRequest
from flask import url_for, Blueprint
from flask import url_for, Blueprint, current_app
def view_class_from_endpoint(endpoint: str):
return current_app.view_functions[endpoint].view_class
def blueprint_for_module(module_name, api_ver=2, suffix=""):