

def build_swagger_12_api_declaration(resource_name, api_declaration):
    '\n    :param resource_name: The `path` parameter from the resource listing for\n        this resource.\n    :type resource_name: string\n    :param api_declaration: JSON representing a Swagger 1.2 api declaration\n    :type api_declaration: dict\n    :rtype: :class:`pyramid_swagger.model.PyramidEndpoint`\n    '
    route_name = 'pyramid_swagger.swagger12.apidocs-{0}'.format(resource_name)
    return PyramidEndpoint(path='/{0}'.format(resource_name), route_name=route_name, view=build_swagger_12_api_declaration_view(resource_name), renderer='json')

dataset/ETHPy150Open striglia/pyramid_swagger/pyramid_swagger/api.py build_swagger_12_api_declaration/VarMisuse@43/200 `api_declaration`->`resource_name`