2024-04-11 16:45:48 +02:00
|
|
|
import {restGet, restPatch, restPost} from "@/rest/restConsumer.js";
|
2024-04-06 16:12:11 +02:00
|
|
|
|
|
|
|
export async function createExemptionsRequest(exempReq){
|
|
|
|
return restPost("/exemptionreq", exempReq)
|
2024-04-09 15:58:10 +02:00
|
|
|
}
|
|
|
|
|
2024-04-10 14:40:41 +02:00
|
|
|
export async function createScholarshipRequest(reqInfo){
|
|
|
|
return restPost("/scholarshipreq", reqInfo)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getAllScholarShipsRequest(){
|
|
|
|
return restGet("/scholarshipreq")
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getAllExemptionsRequest(){
|
|
|
|
return restGet("/exemptionsreq")
|
2024-04-11 16:45:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function editEquivalenceState(id, newstate){
|
|
|
|
return restPatch("/request/registerequiv/"+id+"/"+newstate)
|
2024-04-14 18:29:23 +02:00
|
|
|
}
|
|
|
|
|
2024-04-17 13:57:52 +02:00
|
|
|
export async function addUninscReq(userId, reason, curriculumId){
|
|
|
|
return restPost("/unregister", {"userId" : userId, "reason" : reason, "curriculumId":curriculumId})
|
2024-04-15 16:17:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function editScholarshipReq(body){
|
|
|
|
return restPatch("/scholarshipreq/", body)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getScholarshipReqById(id){
|
|
|
|
return restGet("/scholarshipreq/"+id)
|
2024-04-15 20:13:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function getAllUnregisters(){
|
|
|
|
return restGet("/unregister")
|
2024-04-17 08:53:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function getUnregisterbyId(id){
|
|
|
|
return restGet("/unregister/"+id)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function editUnregReq(id, newstate){
|
|
|
|
return restPatch("/unregister/"+id+"/"+newstate)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getAllPayments(){
|
|
|
|
return restGet("/payment")
|
2024-04-17 11:55:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function postChangeCurrReq(item){
|
|
|
|
return restPost("/changecurriculumreq", item)
|
2024-04-06 16:12:11 +02:00
|
|
|
}
|