api clash register requests #118

Closed
opened 2024-03-15 15:36:08 +01:00 by tonitch · 1 comment
Owner

The frontend is calling to /requests/regsiter

export async function createRegister(){
return restPost("/requests/register");
}

The backend is seeding the /inscriptionRequests

@GetMapping("/inscriptionRequests")
public ResponseEntity<Iterable<Map<String,Object>>> getAllRequests(@RequestHeader("Authorization") String token){
if (!isSecretaryOrAdmin(token)){return new UnauthorizedResponse<>(null);}
Iterable<InscriptionRequest> inscriptionRequests = inscriptionServ.getAll();
ArrayList<Map<String,Object>> toReturn = new ArrayList<>();
for (InscriptionRequest i:inscriptionRequests){
toReturn.add(requestWithoutPassword(i));
}
return new ResponseEntity<>(toReturn, HttpStatus.OK);
}

we should decide NOW...

The frontend is calling to `/requests/regsiter` https://git.herisson.ovh/PGL/Clyde/src/commit/198ee8a4ce03e46ea878acc16ea972184b22ef0a/frontend/src/rest/ServiceInscription.js#L12-L14 The backend is seeding the `/inscriptionRequests` https://git.herisson.ovh/PGL/Clyde/src/commit/198ee8a4ce03e46ea878acc16ea972184b22ef0a/backend/src/main/java/ovh/herisson/Clyde/EndPoints/InscriptionController.java#L31-L44 we should decide NOW...
tonitch added the
URGENT BORDEL DE Q
Bug
back
front
labels 2024-03-15 15:36:08 +01:00
tonitch self-assigned this 2024-03-15 15:36:08 +01:00
Maxime was assigned by tonitch 2024-03-15 15:36:08 +01:00
Owner

I'll do yours babe

I'll do yours babe
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PGL/Clyde#118
No description provided.