Warning
This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
galaxy.webapps.openapi package¶
Submodules¶
galaxy.webapps.openapi.utils module¶
Allows merging overlapping openapi definitions. Taken from https://github.com/tiangolo/fastapi/pull/4727
- galaxy.webapps.openapi.utils.get_openapi_security_definitions(flat_dependant: Dependant) Tuple[Dict[str, Any], List[Dict[str, Any]]] [source]¶
- galaxy.webapps.openapi.utils.get_openapi_operation_parameters(*, all_route_params: Sequence[ModelField], model_name_map: Dict[Union[Type[BaseModel], Type[Enum]], str]) List[Dict[str, Any]] [source]¶
- galaxy.webapps.openapi.utils.get_openapi_operation_request_body(*, body_field: Optional[ModelField], model_name_map: Dict[Union[Type[BaseModel], Type[Enum]], str]) Optional[Dict[str, Any]] [source]¶
- galaxy.webapps.openapi.utils.generate_operation_summary(*, route: APIRoute, method: str) str [source]¶
- galaxy.webapps.openapi.utils.get_openapi_operation_metadata(*, route: APIRoute, method: str, operation_ids: Set[str]) Dict[str, Any] [source]¶
- galaxy.webapps.openapi.utils.get_openapi_path(*, route: APIRoute, model_name_map: Dict[type, str], operation_ids: Set[str]) Tuple[Dict[str, Any], Dict[str, Any], Dict[str, Any]] [source]¶
- galaxy.webapps.openapi.utils.get_flat_models_from_routes(routes: Sequence[BaseRoute]) Set[Union[Type[BaseModel], Type[Enum]]] [source]¶
- galaxy.webapps.openapi.utils.get_openapi(*, title: str, version: str, openapi_version: str = '3.0.3', description: Optional[str] = None, routes: Sequence[BaseRoute], tags: Optional[List[Dict[str, Any]]] = None, servers: Optional[List[Dict[str, Union[Any, str]]]] = None, terms_of_service: Optional[str] = None, contact: Optional[Dict[str, Union[Any, str]]] = None, license_info: Optional[Dict[str, Union[Any, str]]] = None) Dict[str, Any] [source]¶
- galaxy.webapps.openapi.utils.merge_paths(existing_path: Dict[str, Any], new_path: Dict[str, Any]) Dict[str, Any] [source]¶
Merge two openapi path descriptions for the same route, e.g. for response content with different accept-encoding.
- galaxy.webapps.openapi.utils.merge_tags(tags_by_id: Dict[str, Optional[List[str]]]) Optional[List[str]] [source]¶
- galaxy.webapps.openapi.utils.merge_summary(summary_by_id: Dict[str, Optional[str]]) Optional[str] [source]¶
- galaxy.webapps.openapi.utils.merge_description(desc_by_id: Dict[str, Optional[str]]) Optional[str] [source]¶
- galaxy.webapps.openapi.utils.merge_operation_id(operation_id_by_id: Dict[str, Optional[str]]) Optional[str] [source]¶
- galaxy.webapps.openapi.utils.merge_deprecated(deprecated_by_id: Dict[str, Optional[bool]]) Optional[bool] [source]¶