Skip to content
Snippets Groups Projects
Commit c4811f04 authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Merge branch 'Sprint/2021-09' into 'master'

Sprint/2021 09

See merge request !128
parents 6d9e9d03 5509578b
No related branches found
No related tags found
1 merge request!128Sprint/2021 09
......@@ -155,4 +155,48 @@ export class ProjectApi {
) {
ProjectApi.getTopLevelProjects(thenHandler, catchHandler, '?noanalyticslog=true');
}
public static getInvitationsList(
projectId: string,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.get(getProjectApiUrl() + 'invitation/list/' + projectId)
.then(thenHandler)
.catch(catchHandler);
}
public static storeInvitation(
body: any,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.post(getProjectApiUrl() + 'invitation', body)
.then(thenHandler)
.catch(catchHandler);
}
public static deleteInvitation(
invitationId: string,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.delete(getProjectApiUrl() + 'invitation/' + invitationId)
.then(thenHandler)
.catch(catchHandler);
}
public static resolveInvitation(
token: string,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.get(getProjectApiUrl() + 'invitation/resolve/' + token)
.then(thenHandler)
.catch(catchHandler);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment