__init__.py 683 B

12345678910111213141516
  1. """
  2. This module defines Connexion Operation classes. A Connexion Operation implements an OpenAPI
  3. operation, which describes a single API operation on a path. It wraps the view function linked to
  4. the operation with decorators to handle security, validation, serialization etc. based on the
  5. OpenAPI specification, and exposes the result to be registered as a route on the application.
  6. """
  7. from .abstract import AbstractOperation # noqa
  8. from .openapi import OpenAPIOperation # noqa
  9. from .secure import SecureOperation # noqa
  10. from .swagger2 import Swagger2Operation # noqa
  11. def make_operation(spec, *args, **kwargs):
  12. return spec.operation_cls.from_spec(spec, *args, **kwargs)