def register_api(module): rules = [ (u'server/ping', u'GET', ServerPing, { u'secure': False }), (u'server', u'GET', ServerInfo, { u'secure': False }), (u'server/processes', u'GET', ServerProcessTree, {}), (u'server/workers', u'GET', ServerWorkers, { u'secure': False }), (u'server/configs', u'GET', ServerConfigs, {}), (u'server/uwsgi/configs', u'GET', ServerUwsgiConfigs, {}), (u'server/reload', u'PUT', ServerReload, {}), (u'server/sessions', u'GET', ServerFlaskSessions, {}), #(u'server/db/ping', u'GET', PingDatabase, {}), #(u'server/db/tables', u'GET', ListDatabaseTables, {}), #(u'server/db/table/<table>', u'GET', GetDatabaseTable, {}), #(u'server/db/table/<table>/<row>/<offset>', u'GET', GetDatabaseTableRecord, {}), #(u'server/db/table/<table>/count', u'GET', GetDatabaseTableRecordCount, {}), #(u'server/db/table/<table>/desc', u'GET', GetDatabaseTableRecordDesc, {}) ] ApiView.register_api(module, rules)
def register_api(module): rules = [ (u'worker/ping', u'GET', ManagerPing, {}), (u'worker/stats', u'GET', ManagerStats, {}), (u'worker/report', u'GET', ManagerReport, {}), #(u'worker/tasks', u'GET', GetTasks, {}), (u'worker/tasks', u'GET', GetAllTasks, {}), (u'worker/tasks/count', u'GET', GetTasksCount, {}), (u'worker/tasks/definitions', u'GET', GetTasksDefinition, {}), #(u'worker/tasks/active', u'GET', GetTasksActive, {}), #(u'worker/tasks/scheduled', u'GET', GetTasksScheduled, {}), #(u'worker/tasks/reserved', u'GET', GetTasksReserved, {}), #(u'worker/tasks/revoked', u'GET', GetTasksRevoked, {}), (u'worker/tasks/<oid>', u'GET', QueryTask, {}), #(u'worker/tasks/<oid>/status', u'GET', QueryTaskStatus, {}), (u'worker/tasks/<oid>/graph', u'GET', GetTaskGraph, {}), (u'worker/tasks', u'DELETE', PurgeAllTasks, {}), (u'worker/tasks/purge', u'DELETE', PurgeTasks, {}), (u'worker/tasks/<oid>', u'DELETE', DeleteTask, {}), #(u'worker/tasks/<oid>/revoke', u'DELETE', RevokeTask, {}), #(u'worker/tasks/time-limit', u'PUT', SetTaskTimeLimit, {}), (u'worker/tasks/test', u'POST', RunJobTest, {}), ] ApiView.register_api(module, rules)
def register_api(module): rules = [ ('%s/keyauth/token' % module.base_path, 'POST', CreateToken, { 'secure': False }), ] ApiView.register_api(module, rules)
def register_api(module): rules = [ (u'scheduler/entries', 'GET', GetSchedulerEntries, {}), (u'scheduler/entry/<name>', 'GET', GetSchedulerEntry, {}), (u'scheduler/entry', 'POST', CreateSchedulerEntry, {}), (u'scheduler/entry', 'DELETE', DeleteSchedulerEntry, {}), ] ApiView.register_api(module, rules)
def register_api(module): rules = [ ('%s/scheduler/entries' % module.base_path, 'GET', GetSchedulerEntries, {}), ('%s/scheduler/entries/<oid>' % module.base_path, 'GET', GetSchedulerEntry, {}), ('%s/scheduler/entries' % module.base_path, 'POST', CreateSchedulerEntry, {}), ('%s/scheduler/entries/<oid>' % module.base_path, 'DELETE', DeleteSchedulerEntry, {}), ] ApiView.register_api(module, rules)
def register_api(module): base = u'simplehttp' rules = [(u'%s/login/domains' % base, u'GET', ListDomains, { u'secure': False }), (u'%s/login' % base, u'POST', Login, { u'secure': False })] ApiView.register_api(module, rules)
def register_api(module): rules = [ (u'events', u'GET', GetEvents, {}), (u'events/types', u'GET', GetEventTypes, {}), (u'events/entities', u'GET', GetEventEntityDefinition, {}), (u'events/<oid>', u'GET', GetEvent, {}), ] ApiView.register_api(module, rules)
def register_api(module): base = u'keyauth' rules = [ (u'%s/token' % base, u'POST', CreateToken, {u'secure':False}), (u'%s/login/domains' % base, u'GET', ListDomains, {u'secure':False}), (u'%s/login' % base, u'POST', Login, {u'secure':False}), (u'%s/login/refresh' % base, u'PUT', LoginRefresh, {}), (u'%s/login/<oid>' % base, u'GET', LoginExists, {}), (u'%s/logout' % base, u'DELETE', Logout, {}), ] ApiView.register_api(module, rules)
def register_api(module): rules = [ ('server/ping', 'GET', ServerPing, { 'secure': False }), ('server', 'GET', ServerInfo, { 'secure': False }), # ('server/processes', 'GET', ServerProcessTree, {}), # ('server/workers', 'GET', ServerWorkers, {'secure':False}), # ('server/configs', 'GET', ServerConfigs, {}), # ('server/uwsgi/configs', 'GET', ServerUwsgiConfigs, {}), # ('server/reload', 'PUT', ServerReload, {}), ] ApiView.register_api(module, rules)
def register_api(module): base = u'auth' rules = [ (u'%s/domains' % base, u'GET', ListDomains, { u'secure': False }), (u'%s/tokens' % base, u'GET', ListTokens, {}), (u'%s/tokens/<oid>' % base, u'GET', GetToken, {}), (u'%s/tokens/<oid>' % base, u'DELETE', DeleteToken, {}), (u'%s/tokens/<oid>/exist' % base, u'GET', LoginExists, {}), (u'%s/users' % base, u'GET', ListUsers, {}), (u'%s/users/<oid>' % base, u'GET', GetUser, {}), (u'%s/users/<oid>/attributes' % base, u'GET', GetUserAtributes, {}), (u'%s/users' % base, u'POST', CreateUser, {}), (u'%s/users/<oid>' % base, u'PUT', UpdateUser, {}), (u'%s/users/<oid>/attributes' % base, u'POST', CreateUserAttribute, {}), (u'%s/users/<oid>/attributes/<aid>' % base, u'DELETE', DeleteUserAttribute, {}), (u'%s/users/<oid>' % base, u'DELETE', DeleteUser, {}), (u'%s/roles' % base, u'GET', ListRoles, {}), (u'%s/roles/<oid>' % base, u'GET', GetRole, {}), (u'%s/roles' % base, u'POST', CreateRole, {}), (u'%s/roles/<oid>' % base, u'PUT', UpdateRole, {}), (u'%s/roles/<oid>' % base, u'DELETE', DeleteRole, {}), (u'%s/groups' % base, u'GET', ListGroups, {}), (u'%s/groups/<oid>' % base, u'GET', GetGroup, {}), (u'%s/groups' % base, u'POST', CreateGroup, {}), (u'%s/groups/<oid>' % base, u'PUT', UpdateGroup, {}), (u'%s/groups/<oid>' % base, u'DELETE', DeleteGroup, {}), (u'%s/objects' % base, u'GET', ListObjects, {}), (u'%s/objects/<oid>' % base, u'GET', GetObject, {}), (u'%s/objects' % base, u'POST', CreateObject, {}), (u'%s/objects/<oid>' % base, u'DELETE', DeleteObject, {}), (u'%s/objects/types' % base, u'GET', ListObjectTypes, {}), (u'%s/objects/types' % base, u'POST', CreateObjectType, {}), (u'%s/objects/types/<oid>' % base, u'DELETE', DeleteObjectType, {}), (u'%s/objects/perms' % base, u'GET', ListObjectPerms, {}), (u'%s/objects/perms/<oid>' % base, u'GET', GetObjectPerms, {}), (u'%s/objects/actions' % base, u'GET', ListObjectActions, {}), ] ApiView.register_api(module, rules)
def register_api(module): rules = [ ('%s/worker/ping' % module.base_path, 'GET', ManagerPing, {}), ('%s/worker/stats' % module.base_path, 'GET', ManagerStats, {}), ('%s/worker/report' % module.base_path, 'GET', ManagerReport, {}), ('%s/worker/queues' % module.base_path, 'GET', ManagerActiveQueues, {}), ('%s/worker/tasks' % module.base_path, 'GET', GetTasks, {}), ('%s/worker/tasks/definitions' % module.base_path, 'GET', GetTasksDefinition, {}), ('%s/worker/tasks/<oid>' % module.base_path, 'GET', GetTask, {}), ('%s/worker/tasks/<oid>/status' % module.base_path, 'GET', GetTaskStatus, {}), ('%s/worker/tasks/<oid>/trace' % module.base_path, 'GET', GetTrace, {}), # ('%s/worker/tasks/<oid>/graph' % module.base_path, 'GET', GetTaskGraph, {}), # ('%s/worker/tasks' % module.base_path, 'DELETE', PurgeAllTasks, {}), # ('%s/worker/tasks/<oid>' % module.base_path, 'DELETE', DeleteTask, {}), ('%s/worker/tasks/test' % module.base_path, 'POST', RunTestTask, {}), ] ApiView.register_api(module, rules)
def register_api(module): rules = [ (u'catalogs', u'GET', ListCatalogs, {}), (u'catalog/<oid>', u'GET', GetCatalog, {}), #('catalog/<oid>/<zone>', 'GET', FilterCatalog, {}), (u'catalog/<oid>/perms', u'GET', GetCatalogPerms, {}), (u'catalog', u'POST', CreateCatalog, {}), (u'catalog/<oid>', u'PUT', UpdateCatalog, {}), (u'catalog/<oid>', u'DELETE', DeleteCatalog, {}), #('catalog/<oid>/services', 'GET', GetCatalogServices, {}), (u'catalog/endpoints', u'GET', ListEndpoints, {}), (u'catalog/endpoint/<oid>', u'GET', GetEndpoint, {}), (u'catalog/endpoint/<oid>/perms', u'GET', GetEndpointPerms, {}), (u'catalog/endpoint', u'POST', CreateEndpoint, {}), (u'catalog/endpoint/<oid>', u'PUT', UpdateEndpoint, {}), (u'catalog/endpoint/<oid>', u'DELETE', DeleteEndpoint, {}), ] ApiView.register_api(module, rules)
def register_api(module): rules = [ ('%s/catalogs' % module.base_path, 'GET', ListCatalogs, {}), ('%s/catalogs/<oid>' % module.base_path, 'GET', GetCatalog, {}), # ('%s/catalog/<oid>/<zone>' % module.base_path, 'GET', FilterCatalog, {}), ('%s/catalogs/<oid>/perms' % module.base_path, 'GET', GetCatalogPerms, {}), ('%s/catalogs' % module.base_path, 'POST', CreateCatalog, {}), ('%s/catalogs/<oid>' % module.base_path, 'PUT', UpdateCatalog, {}), ('%s/catalogs/<oid>' % module.base_path, 'DELETE', DeleteCatalog, {}), # ('%s/catalogs/<oid>/services' % module.base_path, 'GET', GetCatalogServices, {}), ('%s/endpoints' % module.base_path, 'GET', ListEndpoints, {}), ('%s/endpoints/<oid>' % module.base_path, 'GET', GetEndpoint, {}), ('%s/endpoints/<oid>/perms' % module.base_path, 'GET', GetEndpointPerms, {}), ('%s/endpoints' % module.base_path, 'POST', CreateEndpoint, {}), ('%s/endpoints/<oid>' % module.base_path, 'PUT', UpdateEndpoint, {}), ('%s/endpoints/<oid>' % module.base_path, 'DELETE', DeleteEndpoint, {}), ] ApiView.register_api(module, rules)
def register_api(module): rules = [('configs/<app>', 'GET', ListConfig, {}), ('configs', 'GET', FilterConfig, {})] ApiView.register_api(module, rules)
def register_api(module): rules = [ ('%s/simplehttp/login' % module.base_path, 'POST', SimpleHttpLogin, {'secure': False}) ] ApiView.register_api(module, rules)