示例#1
0
def init():
    api.add_resource(ProjectList, '/api/v1/projects')
    api.add_resource(ProjectDetail, '/api/v1/projects/<int:id>')
    api.add_resource(ProjectUpdate, '/api/v1/projects/<int:id>/update')
    api.add_resource(ProjectCreate, '/api/v1/projects/create')
示例#2
0
文件: __init__.py 项目: rysev-a/smm
def init():
    api.add_resource(AccountInfo, '/api/v1/account')
    api.add_resource(AccountSignin, '/api/v1/account/signin')
    api.add_resource(AccountSignup, '/api/v1/account/signup')
    api.add_resource(AccountUpdate, '/api/v1/account/update')
    api.add_resource(AccountSignout, '/api/v1/account/signout')
示例#3
0
def init():
    api.add_resource(CommentList, '/api/v1/comments')
    api.add_resource(CommentDetail, '/api/v1/comments/<int:id>')
示例#4
0
文件: __init__.py 项目: rysev-a/smm
def init():
    api.add_resource(TaskList, '/api/v1/tasks')
    api.add_resource(TaskDetail, '/api/v1/tasks/<int:id>')
    api.add_resource(TaskCreate, '/api/v1/tasks/create')
    api.add_resource(TaskUpdate, '/api/v1/tasks/<int:id>/update')
示例#5
0
def init():
    api.add_resource(UserList, '/api/v1/users')
    api.add_resource(UserDetail, '/api/v1/users/<int:id>')

    api.add_resource(RoleList, '/api/v1/roles')
    api.add_resource(RoleDetail, '/api/v1/roles/<int:id>')
示例#6
0
文件: __init__.py 项目: rysev-a/smm
def init():
    api.add_resource(LogList, '/api/v1/logs')
    api.add_resource(LogDetail, '/api/v1/logs/<int:id>')
示例#7
0
def init():
    api.add_resource(Ping, '/api/v1/ping')
示例#8
0
def init():
    api.add_resource(CypressClear, '/api/v1/cypress/clear')
    api.add_resource(CypressGenerate, '/api/v1/cypress/generate')