Skip to content
Snippets Groups Projects
Commit 057fb2df authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Merge branch 'Product/1180-genericOrganizationMembershipFunction' into 'Sprint/2021-02'

Product/1180 generic organization membership function

See merge request !117
parents 3322d655 8f8c6180
No related branches found
No related tags found
2 merge requests!117Product/1180 generic organization membership function,!116Sprint/2021 02
......@@ -68,7 +68,28 @@ export class OrganizationApi {
) {
apiConnectionBasic.setHeader();
return axios
.get(getOrganizationApiUrl() + '-/isRWTHMember')
.get(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent('https://ror.org/04xfq0f34'))
.then(thenHandler)
.catch(catchHandler);
}
public static isMember(
organizationUrl: string,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.get(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent(organizationUrl))
.then(thenHandler)
.catch(catchHandler);
}
public static getMemberships(
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.get(getOrganizationApiUrl() + '-/isMember')
.then(thenHandler)
.catch(catchHandler);
}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment