Skip to content

Commit ec0f257

Browse files
committed
Deploying to gh-pages from @ d31e8a8 🚀
1 parent 8ace45f commit ec0f257

File tree

3 files changed

+111
-66
lines changed

3 files changed

+111
-66
lines changed

drafts/HMAI-100-implement-get-balances/documentation/api/index.html

+109-64
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ <h2 id="v1-prison-prisonid-prisoners-hmppsid-balances">/v1/prison/{prisonId}/pri
313313

314314
<h3 id="v1-prison-prisonid-prisoners-hmppsid-balances-get">get</h3>
315315

316+
<p><em>Returns a all accounts for a prisoner that they have at a prison.</em></p>
317+
318+
319+
<p><b>Applicable filters</b>: <ul><li>prisons</li></ul></p>
320+
316321

317322

318323

@@ -359,7 +364,7 @@ <h4 id="v1-prison-prisonid-prisoners-hmppsid-balances-get-responses">Responses</
359364
<tr>
360365
<td>200</td>
361366
<td>
362-
<p>OK</p>
367+
<p>Successfully found a prisoner&rsquo;s accounts.</p>
363368

364369

365370

@@ -371,19 +376,69 @@ <h4 id="v1-prison-prisonid-prisoners-hmppsid-balances-get-responses">Responses</
371376
"amount": "integer"
372377
}
373378
]
374-
},
375-
"errors": [
376-
{
377-
"causedBy": "string",
378-
"type": "string",
379-
"description": "string"
380-
}
381-
]
379+
}
380+
}</code></pre>
381+
382+
</td>
383+
<td>
384+
<a href='#schema-dataresponsebalances'>DataResponseBalances</a>
385+
</td>
386+
</tr>
387+
388+
<tr>
389+
<td>400</td>
390+
<td>
391+
<p>The HMPPS ID provided has an invalid format or the prisoner does hot have accounts at the specified prison.</p>
392+
393+
394+
395+
<pre><code>{
396+
"status": 400,
397+
"userMessage": "Validation failure: No query parameters specified.",
398+
"developerMessage": "No query parameters specified."
399+
}</code></pre>
400+
401+
</td>
402+
<td>
403+
<a href='#schema-badrequest'>BadRequest</a>
404+
</td>
405+
</tr>
406+
407+
<tr>
408+
<td>404</td>
409+
<td>
410+
<p>Not Found</p>
411+
412+
413+
414+
<pre><code>{
415+
"status": 404,
416+
"userMessage": "404 Not found error: Could not find person with HMPPS id: 2003/0011991D.",
417+
"developerMessage": "Could not find person with HMPPS id: 2003/0011991D."
382418
}</code></pre>
383419

384420
</td>
385421
<td>
386-
<a href='#schema-responsebalances'>ResponseBalances</a>
422+
<a href='#schema-personnotfound'>PersonNotFound</a>
423+
</td>
424+
</tr>
425+
426+
<tr>
427+
<td>500</td>
428+
<td>
429+
<p>Internal Server Error</p>
430+
431+
432+
433+
<pre><code>{
434+
"status": 500,
435+
"userMessage": "Internal Server Error",
436+
"developerMessage": "Unable to complete request as an upstream service is not responding."
437+
}</code></pre>
438+
439+
</td>
440+
<td>
441+
<a href='#schema-internalservererror'>InternalServerError</a>
387442
</td>
388443
</tr>
389444

@@ -5524,10 +5579,10 @@ <h3 id="schema-balances">Balances</h3>
55245579
</tbody>
55255580
</table>
55265581

5527-
<h3 id="schema-responsebalances">ResponseBalances</h3>
5582+
<h3 id="schema-dataresponsebalances">DataResponseBalances</h3>
55285583

55295584

5530-
<table class='schema-responsebalances'>
5585+
<table class='schema-dataresponsebalances'>
55315586
<thead>
55325587
<tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th><th>Schema</th></tr>
55335588
</thead>
@@ -5543,58 +5598,6 @@ <h3 id="schema-responsebalances">ResponseBalances</h3>
55435598
</td>
55445599
</tr>
55455600

5546-
<tr>
5547-
<td>errors</td>
5548-
<td>array</td>
5549-
<td>true</td>
5550-
<td></td>
5551-
<td>
5552-
<a href='#schema-upstreamapierror'>UpstreamApiError</a>
5553-
</td>
5554-
</tr>
5555-
5556-
</tbody>
5557-
</table>
5558-
5559-
<h3 id="schema-upstreamapierror">UpstreamApiError</h3>
5560-
5561-
5562-
<table class='schema-upstreamapierror'>
5563-
<thead>
5564-
<tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th><th>Schema</th></tr>
5565-
</thead>
5566-
<tbody>
5567-
5568-
<tr>
5569-
<td>causedBy</td>
5570-
<td>string</td>
5571-
<td>true</td>
5572-
<td></td>
5573-
<td>
5574-
5575-
</td>
5576-
</tr>
5577-
5578-
<tr>
5579-
<td>type</td>
5580-
<td>string</td>
5581-
<td>true</td>
5582-
<td></td>
5583-
<td>
5584-
5585-
</td>
5586-
</tr>
5587-
5588-
<tr>
5589-
<td>description</td>
5590-
<td>string</td>
5591-
<td>false</td>
5592-
<td></td>
5593-
<td>
5594-
5595-
</td>
5596-
</tr>
5597-
55985601
</tbody>
55995602
</table>
56005603

@@ -11495,6 +11498,48 @@ <h3 id="schema-response">Response</h3>
1149511498
</tbody>
1149611499
</table>
1149711500

11501+
<h3 id="schema-upstreamapierror">UpstreamApiError</h3>
11502+
11503+
11504+
<table class='schema-upstreamapierror'>
11505+
<thead>
11506+
<tr><th>Name</th><th>Type</th><th>Required</th><th>Description</th><th>Schema</th></tr>
11507+
</thead>
11508+
<tbody>
11509+
11510+
<tr>
11511+
<td>causedBy</td>
11512+
<td>string</td>
11513+
<td>true</td>
11514+
<td></td>
11515+
<td>
11516+
11517+
</td>
11518+
</tr>
11519+
11520+
<tr>
11521+
<td>type</td>
11522+
<td>string</td>
11523+
<td>true</td>
11524+
<td></td>
11525+
<td>
11526+
11527+
</td>
11528+
</tr>
11529+
11530+
<tr>
11531+
<td>description</td>
11532+
<td>string</td>
11533+
<td>false</td>
11534+
<td></td>
11535+
<td>
11536+
11537+
</td>
11538+
</tr>
11539+
11540+
</tbody>
11541+
</table>
11542+
1149811543
<h3 id="schema-dataresponsenomisnumber">DataResponseNomisNumber</h3>
1149911544

1150011545

drafts/HMAI-100-implement-get-balances/openapi/api-docs.json

+1-1
Large diffs are not rendered by default.

drafts/HMAI-100-implement-get-balances/search.json

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)