def METHOD_NAME(info, resource, handler, path=None, method=None):
    """
    Augment route info, returning a Swagger-compatible operation description.
    """
    operation = dict(info)
    operation['tags'] = [resource]
    # Operation Object spec:
    # Unique string used to identify the operation. The id MUST be unique among
    # all operations described in the API.
    if 'operationId' not in operation:
        operation['operationId'] = str(resource) + '_' + handler.__name__
        if method and method.lower() != 'get':
            operation['operationId'] += '_' + method.lower()
        if path:
            operation['operationId'] += '_' + path.split('/', 2)[-1].replace(
                '/', '_').replace('{', '').replace('}', '')
    return operation