def resolve_operation_id(self, operation): """ Resolves the operationId using REST semantics unless explicitly configured in the spec :type operation: connexion.operations.AbstractOperation """ if operation.operation_id: return Resolver.resolve_operation_id(self, operation) return self.resolve_operation_id_using_rest_semantics(operation)
def resolve_operation_id(self, operation): """ Resolves the operationId using REST semantics unless explicitly configured in the spec :type operation: connexion.operation.Operation """ if operation.operation.get('operationId'): return Resolver.resolve_operation_id(self, operation) return self.resolve_operation_with_dispatch(operation)
def resolve_operation_id(self, operation): spec = operation.operation x_domain_module = spec.get('x-swagger-domain-module', '') x_subdomain_module = spec.get('x-swagger-subdomain-module', '') x_router_controller = spec.get('x-swagger-router-controller', '') modules = [module for module in (x_domain_module, x_subdomain_module, x_router_controller) if module] if modules: spec['x-swagger-router-controller'] = '.'.join(modules) return Resolver.resolve_operation_id(self, operation)