Exemplo n.º 1
0
def get_api_v2():
    api = Api(api_name='v2')
    api.register(TrackerResource())
    api.register(CourseResource())
    api.register(TagResource())
    api.register(PointsResource())
    api.register(AwardsResource())
    api.register(BadgesResource())
    api.register(UserResource())
    api.register(RegisterResourceV2())
    api.register(ResetPasswordResource())
    api.register(ProfileUpdateResource())
    api.register(QuizAttemptResource())
    return api
Exemplo n.º 2
0
def get_api_v2():
    api = Api(api_name='v2')
    api.register(TrackerResource())
    api.register(CourseResource())
    api.register(CategoryResource())
    api.register(PointsResource())
    api.register(AwardsResource())
    api.register(BadgesResource())
    api.register(UserResource())
    api.register(RegisterResourceV2())
    api.register(ResetPasswordResource())
    api.register(ProfileUpdateResource())
    api.register(QuizAttemptResource())
    api.register(CourseStructureResource())
    api.register(UserCourseSummaryResource())
    api.register(UsernameResource())
    api.register(DeleteAccountResource())
    api.register(DownloadDataResource())
    api.register(ChangePasswordResource())
    return api