mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
get SocialIssues List in multiselect
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user