Commit 6e6bd16 1 parent 4660ea3 commit 6e6bd16 Copy full SHA for 6e6bd16
File tree 1 file changed +3
-3
lines changed
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class HmppsIdController(
42
42
return DataResponse (response.data)
43
43
}
44
44
45
- @GetMapping(" {encodedNomisNumber }/nomis-number" )
45
+ @GetMapping(" {encodedHmppsId }/nomis-number" )
46
46
@Operation(
47
47
summary = " Return NOMS number for a given hmpps Id" ,
48
48
description = """ Accepts a HMPPS Id (hmppsId) and looks up the corresponding NOMS number.
@@ -54,9 +54,9 @@ class HmppsIdController(
54
54
],
55
55
)
56
56
fun getNomisNumberByHMPPSID (
57
- @PathVariable encodedNomisNumber : String ,
57
+ @PathVariable encodedHmppsId : String ,
58
58
): DataResponse <NomisNumber ?> {
59
- val hmppsId = encodedNomisNumber .decodeUrlCharacters()
59
+ val hmppsId = encodedHmppsId .decodeUrlCharacters()
60
60
61
61
val response = getHmppsIdService.getNomisNumber(hmppsId)
62
62
You can’t perform that action at this time.
0 commit comments