![]() ![]() """ _roles = None if role is not None : warnings. *Version changed: 0.4.0* - Add parameter `roles`. *Version changed: 0.12.0* - Move to `APIFlask` and `APIBlueprint` classes. *Version changed: 1.0.0* - The `role` parameter is deprecated. : optional: Set to `True` to allow the view to execute even the authentication information is not included with the request, in which case the attribute `auth.current_user` will be `None`. Example: ```python bp = APIBlueprint('foo', _name_, tag='Foo') ``` ```python bp = APIBlueprint('foo', _name_, tag= for more details. Accepts a tag name string or an OpenAPI tag dict. If not set, the `.title()` will be used (`'foo'` -> `'Foo'`). This helps locate the `root_path` for the blueprint. import_name: The name of the blueprint package, usually `_name_`. Arguments: name: The name of the blueprint. Union ] = _sentinel # type: ignore ) -> None : """Make a blueprint instance. Optional ] = None, enable_openapi : bool = True, static_folder : t. *Version added: 0.2.0* """ def _init_ ( self, name : str, import_name : str, tag : t. Examples: ```python from apiflask import APIBlueprint bp = APIBlueprint('foo', _name_) ``` *Version changed: 0.5.0* - Add `enable_openapi` parameter. Class APIBlueprint ( APIScaffold, Blueprint ): """Flask's `Blueprint` object with some web API support. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |