You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document that create visit endpoint creates an approved visit (#777)
* Remove documentation that does not apply to our API.
* Update summaries of endpoints to make clearer that they are reporting external systems.
* Add warning of no checking of the visit suitability.
* Remove superfluous breaks.
* Provide more detail on return value of visitor restrictions.
* Reword future visits endpoint summary.
* Reword prisoner visit-restrictions endpoint.
* Reword visit-orders summary.
* Bring description onto one line to fix generated html.
* Remove double brs
* Typo.
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/OffenderRestrictionsController.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ class OffenderRestrictionsController(
summary ="Returns a single prisoners list of non associates.",
34
-
description ="<b>Applicable filters</b>: <ul><li>prisons</li></ul> <br> includeOpen is true by default, includeClosed is false by default. At least one must be true. The role READ_NON_ASSOCIATIONS is required for this endpoint.",
34
+
description ="<b>Applicable filters</b>: <ul><li>prisons</li></ul> <br> includeOpen is true by default, includeClosed is false by default. At least one must be true.",
35
35
responses = [
36
36
ApiResponse(responseCode ="200", useReturnTypeSchema =true, description ="Successfully found prisoners non associates."),
ApiResponse(responseCode ="200", useReturnTypeSchema =true, description ="Successfully created a transaction."),
188
188
ApiResponse(
@@ -255,7 +255,7 @@ class TransactionsController(
255
255
256
256
@Operation(
257
257
summary ="Transfer funds between the accounts of a prisoner.",
258
-
description ="Currently only able to move from spends to savings.<br><br><a href=\"#schema-transactiontransferrequest\">Request body</a><br><br><b>Applicable filters</b>: <ul><li>prisons</li></ul>",
258
+
description ="Currently only able to move from spends to savings.<br><a href=\"#schema-transactiontransferrequest\">Request body</a><br><br><b>Applicable filters</b>: <ul><li>prisons</li></ul>",
259
259
responses = [
260
260
ApiResponse(responseCode ="200", useReturnTypeSchema =true, description ="Successfully created a transaction transfer."),
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/FutureVisitsController.kt
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/PersonController.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -235,7 +235,7 @@ class PersonController(
235
235
236
236
@GetMapping("{hmppsId}/visit-orders")
237
237
@Operation(
238
-
summary ="Returns visit orders.",
238
+
summary ="Returns the number of remaining visit orders a prisoner has.",
239
239
responses = [
240
240
ApiResponse(responseCode ="200", useReturnTypeSchema =true, description ="Successfully found a prisoners visit orders."),
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/VisitRestrictionsController.kt
+4-4
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,8 @@ class VisitRestrictionsController(
description ="Returns a list of restrictionsfor the latest booking",
35
+
summary ="Gets visit restrictions for a prisoner.",
36
+
description ="Returns a prisoner's visit restrictions. Only returns the visit restrictions for the prisoner's most recent booking.",
37
37
responses = [
38
38
ApiResponse(responseCode ="200", useReturnTypeSchema =true, description ="Successfully found a person's visit restrictions with the provided HMPPS ID."),
@@ -60,8 +60,8 @@ class VisitRestrictionsController(
60
60
}
61
61
62
62
@Operation(
63
-
summary ="Gets visitor restrictions.",
64
-
description ="Returns visitorrestrictions for a prisoner",
63
+
summary ="Get the restrictions for a visitor.",
64
+
description ="Provides both the global restrictions for the visitor, as well as the restrictions for the relationship between the prisoner and visitor.",
65
65
responses = [
66
66
ApiResponse(responseCode ="200", useReturnTypeSchema =true, description ="Successfully found a prisoners vistor restrictions with the provided HMPPS ID and contact ID."),
0 commit comments