2017-05-08 19:51:28 +02:00
|
|
|
from app.api.GetAllAPI import GetAllAPI
|
2017-03-17 09:08:50 +01:00
|
|
|
from app.api.GroupAPI import GroupAPI
|
2017-03-28 17:57:51 +02:00
|
|
|
from app.api.LivretAPI import LivretAPI
|
2017-03-17 09:08:50 +01:00
|
|
|
from app.api.LoginAPI import LoginAPI
|
2017-05-08 19:51:28 +02:00
|
|
|
from app.api.PeriodAPI import PeriodAPI
|
2017-03-14 10:14:11 +01:00
|
|
|
from app.api.UserAPI import UserAPI
|
2017-03-28 17:57:51 +02:00
|
|
|
from app.api.UserInfoAPI import UserInfoAPI, UserGroupsAPI
|
2017-01-23 00:04:51 +01:00
|
|
|
from app.api.exampleapi import SomeApi
|
2017-01-23 15:50:05 +01:00
|
|
|
from app.core import api
|
2017-01-20 17:04:12 +01:00
|
|
|
|
|
|
|
# Some Api resource
|
2017-01-23 00:04:51 +01:00
|
|
|
api.add_resource(SomeApi, '/api/someapi', '/api/someapi/<int:id>')
|
2017-03-07 06:03:48 +01:00
|
|
|
api.add_resource(LoginAPI, '/api/login')
|
2017-03-17 09:08:50 +01:00
|
|
|
api.add_resource(UserInfoAPI, '/api/userInfo')
|
2017-03-28 17:57:51 +02:00
|
|
|
api.add_resource(UserGroupsAPI, '/api/userGroups')
|
2017-03-28 15:14:57 +02:00
|
|
|
api.add_resource(UserAPI, '/api/user', '/api/user/byuid/<int:uid>', '/api/user/byemail/<string:email>',
|
|
|
|
'/api/user/byhash/<string:hashcode>')
|
2017-03-17 09:08:50 +01:00
|
|
|
api.add_resource(GroupAPI, '/api/group', '/api/group/bygid/<int:gid>', '/api/group/byname/<string:name>')
|
2017-05-06 18:03:15 +02:00
|
|
|
api.add_resource(LivretAPI, '/api/livret', '/api/livret/bylid/<int:lid>',
|
|
|
|
'/api/livret/bytutorship/<int:group_id>/<int:student_id>')
|
2017-05-08 19:51:28 +02:00
|
|
|
api.add_resource(PeriodAPI, '/api/period', '/api/period/bypid/<int:pid>')
|
|
|
|
api.add_resource(GetAllAPI, '/api/getAll/<string:what>/<int:value>')
|