示例#1
0
class Collection(Resource):
    on_get = authorize_user(CallAction(GetAllUsersAction))
示例#2
0
class Item(Resource):
    on_get = authorize_user(CallAction(GetUserAction, validator=UserIdSchema))
示例#3
0
class Item(Resource):
    on_post = authorize_user(
        CallAction(CreateMessageForUser, validator=UserMessageIdSchema))
    on_get = authorize_user(
        CallAction(GetAllMessagesForUser, validator=UserIdSchema))
示例#4
0
class Item(Resource):
    on_get = authorize_user(CallAction(GetMessage, validator=MessageIdSchema))
示例#5
0
class Collection(Resource):
    on_post = authorize_user(
        CallAction(CreateMessageForUsers, validator=MessageSchema))
    on_get = authorize_user(CallAction(GetAllMessages))
示例#6
0
class Collection(Resource):
    on_get = authorize_user(CallAction(GetUserPaymentsAction))
示例#7
0
class Ping(Resource):
    on_get = authorize_user(CallAction(PingAction))
    on_post = CallAction(PingAction, validator=PingSchema)