get SocialIssues List in multiselect

This commit is contained in:
2021-05-19 22:20:16 +02:00
parent f548121312
commit 9da4c1ebeb
3 changed files with 37 additions and 3 deletions

View File

@@ -13,6 +13,18 @@ const getAccompanyingCourse = (id) => {
});
};
/*
* Endpoint
*/
const getSocialIssues = () => {
const url = `/api/1.0/person/social-work/social-issue.json`;
return fetch(url)
.then(response => {
if (response.ok) { return response.json(); }
throw Error('Error with request resource response');
});
};
/*
* Endpoint v.2 chill_api_single_accompanying_course__entity
* method PATCH, patch AccompanyingCourse Instance
@@ -121,6 +133,7 @@ const postResource = (id, payload, method) => {
export {
getAccompanyingCourse,
getSocialIssues,
patchAccompanyingCourse,
postParticipation,
postRequestor,