File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -1212,6 +1212,31 @@ def tempo_account_export_accounts(self):
1212
1212
url = 'rest/tempo-accounts/1/export'
1213
1213
return self .get (url , headers = headers , not_json_response = True )
1214
1214
1215
+ def tempo_holiday_get_schemes (self ):
1216
+ """
1217
+ Provide a holiday scheme
1218
+ :return:
1219
+ """
1220
+ url = 'rest/tempo-core/2/holidayschemes/'
1221
+ return self .get (url )
1222
+
1223
+ def tempo_holiday_get_scheme_members (self , scheme_id ):
1224
+ """
1225
+ Provide a holiday scheme
1226
+ :return:
1227
+ """
1228
+ url = 'rest/tempo-core/2/holidayschemes/{}/members' .format (scheme_id )
1229
+ return self .get (url )
1230
+
1231
+ def tempo_holiday_put_into_scheme_member (self , scheme_id , username ):
1232
+ """
1233
+ Provide a holiday scheme
1234
+ :return:
1235
+ """
1236
+ url = 'rest/tempo-core/2/holidayschemes/{}/members/{}/' .format (scheme_id , username )
1237
+ data = {'id' : scheme_id }
1238
+ return self .put (url , data = data )
1239
+
1215
1240
"""
1216
1241
#######################################################################
1217
1242
# Agile(Formerly Greenhopper) REST API implements #
You can’t perform that action at this time.
0 commit comments