InseeFr / Magma

Metadata management API
MIT License
1 stars 4 forks source link

154 renvoyer un code 404 en cas d identifiant inexistant #160

Closed GtanSndil closed 5 months ago

GtanSndil commented 5 months ago

issue #154 End-points modifiés : @GetMapping("/listeCode/{id}/pagination") @GetMapping("/organisation/{id}/") (renvoyait un code 200 avec un json des champs vides) @GetMapping("/structure/{id}") (renvoyait un code 500) @GetMapping("/composant/{id}") (renvoyait un code 500) @GetMapping("/concept/{id}") (renvoyait un code 200 avec un json contenant des champs vides) @GetMapping("/operations/serie/{id}/") (renvoyait un code 500) @GetMapping("/operations/operation/{id}/") (renvoyait un code 200 avec un json contenant des champs vides) @GetMapping("/dataset/{id}") (renvoyait un code 500)

End-points renvoyant 200 et un tableau vide [ ], donc pas modifiés : @GetMapping("/operations/serie/{id}/operations/") @GetMapping("/dataset/{id}/distributions")

End-point non traité car en cours de modif par ailleurs : @PatchMapping(value = "/dataset/{id}/observationNumber")