

def setup_resources(api):
    resources_endpoints = {
        'Blueprints': 'blueprints',
        'BlueprintsId': 'blueprints/<string:blueprint_id>',
        'BlueprintsIdArchive': 'blueprints/<string:blueprint_id>/archive',
        'Snapshots': 'snapshots',
        'SnapshotsId': 'snapshots/<string:snapshot_id>',
        'SnapshotsIdArchive': 'snapshots/<string:snapshot_id>/archive',
        'SnapshotsIdRestore': 'snapshots/<string:snapshot_id>/restore',
        'Executions': 'executions',
        'ExecutionsId': 'executions/<string:execution_id>',
        'Deployments': 'deployments',
        'DeploymentsId': 'deployments/<string:deployment_id>',
        'DeploymentsIdOutputs': 'deployments/<string:deployment_id>/outputs',
        'DeploymentModifications': 'deployment-modifications',
        'DeploymentModificationsId': 'deployment-modifications/<string:modification_id>',
        'DeploymentModificationsIdFinish': 'deployment-modifications/<string:modification_id>/finish',
        'DeploymentModificationsIdRollback': 'deployment-modifications/<string:modification_id>/rollback',
        'Nodes': 'nodes',
        'NodeInstances': 'node-instances',
        'NodeInstancesId': 'node-instances/<string:node_instance_id>',
        'Events': 'events',
        'Search': 'search',
        'Status': 'status',
        'ProviderContext': 'provider/context',
        'Version': 'version',
        'EvaluateFunctions': 'evaluate/functions',
        'Tokens': 'tokens',
        'Plugins': 'plugins',
        'PluginsId': 'plugins/<string:plugin_id>',
        'PluginsArchive': 'plugins/<string:plugin_id>/archive',
        'MaintenanceMode': 'maintenance',
        'MaintenanceModeAction': 'maintenance/<string:maintenance_action>',
        'DeploymentUpdates': 'deployment-updates',
        'DeploymentUpdateSteps': 'deployment-updates/<string:update_id>/step',
        'DeploymentUpdateCommit': 'deployment-updates/<string:update_id>/commit',
        'DeploymentUpdateFinalizeCommit': 'deployment-updates/<string:update_id>/finalize_commit',
    }
    for (resource, endpoint_suffix) in resources_endpoints.iteritems():
        _set_versioned_urls(api, resource, endpoint_suffix)

dataset/ETHPy150Open cloudify-cosmo/cloudify-manager/rest-service/manager_rest/endpoint_mapper.py setup_resources/original