class Collection(Resource): on_get = authorize_user(CallAction(GetAllUsersAction))
class Item(Resource): on_get = authorize_user(CallAction(GetUserAction, validator=UserIdSchema))
class Item(Resource): on_post = authorize_user( CallAction(CreateMessageForUser, validator=UserMessageIdSchema)) on_get = authorize_user( CallAction(GetAllMessagesForUser, validator=UserIdSchema))
class Item(Resource): on_get = authorize_user(CallAction(GetMessage, validator=MessageIdSchema))
class Collection(Resource): on_post = authorize_user( CallAction(CreateMessageForUsers, validator=MessageSchema)) on_get = authorize_user(CallAction(GetAllMessages))
class Collection(Resource): on_get = authorize_user(CallAction(GetUserPaymentsAction))
class Ping(Resource): on_get = authorize_user(CallAction(PingAction)) on_post = CallAction(PingAction, validator=PingSchema)