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
|
|
|
}
|
|
|
|
|
|
|
|
export async function addUninscReq(userId, reason){
|
|
|
|
return restPost("/uninscriptionreq", {"userId" : userId, "reason" : reason})
|
2024-04-06 16:12:11 +02:00
|
|
|
}
|