Skip to content

Commit e723c65

Browse files
authored
PI-2554: Add reference data endpoint to OpenAPI spec (#489)
1 parent f6ceceb commit e723c65

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/ReferenceDataController.kt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package uk.gov.justice.digital.hmpps.hmppsintegrationapi.controllers.v1
22

33
import ReferenceData
4-
import io.swagger.v3.oas.annotations.Hidden
54
import io.swagger.v3.oas.annotations.Operation
65
import io.swagger.v3.oas.annotations.media.Content
76
import io.swagger.v3.oas.annotations.media.ExampleObject
@@ -15,7 +14,6 @@ import uk.gov.justice.digital.hmpps.hmppsintegrationapi.config.AuthorisationConf
1514
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.Response
1615
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.services.ReferenceDataService
1716

18-
@Hidden
1917
@RestController
2018
@EnableConfigurationProperties(AuthorisationConfig::class)
2119
@RequestMapping("/v1/hmpps/reference-data")
@@ -166,7 +164,5 @@ class ReferenceDataController(
166164
ApiResponse(responseCode = "500", content = [Content(schema = Schema(ref = "#/components/schemas/InternalServerError"))]),
167165
],
168166
)
169-
fun getReferenceData(): Response<ReferenceData?> {
170-
return referenceDataService.referenceData()
171-
}
167+
fun getReferenceData(): Response<ReferenceData?> = referenceDataService.referenceData()
172168
}

0 commit comments

Comments
 (0)