def __init__(
self,
session: Session,
flask_request: Request=request,
metadata: APIMetadataModelInterface=MetadataModel()
) -> None:
"""
:param session: The SQLAlchemy ORM Session to use for communicating
with the database. This is required by ``AbstractEndpoint`` in
order to perform its transaction management
:param flask_request: The request to process. By default, this is
flask's ``request`` variable
:param metadata: The metadata to serialize. By default, this is an
instance of the ``MetadataModel`` that pulls all of its values
from the ``config`` script.
"""
super(APIMetadata, self).__init__(session, request=flask_request)
self._api_metadata = metadata
评论列表
文章目录