Skip to content

Commit

Permalink
Merge pull request #111 from hmrc/MTDSA-17334
Browse files Browse the repository at this point in the history
MTDSA-17334: OAS update for Individual Disclosures API
  • Loading branch information
rhysconnor authored Jun 26, 2023
2 parents a8b64c6 + 58ec873 commit 330d161
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
4 changes: 4 additions & 0 deletions resources/public/api/conf/1.0/amend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ description: |
<td><p>NOT_FOUND</p></td>
<td><p>Simulates the scenario where no data is found.</p></td>
</tr>
<tr>
<td><p>STATEFUL</p></td>
<td><p>Performs a stateful create or update.</p></td>
</tr>
</tbody>
</table>
Expand Down
4 changes: 4 additions & 0 deletions resources/public/api/conf/1.0/delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ description: |
<td><p>NOT_FOUND</p></td>
<td><p>Simulates the scenario where no data is found.</p></td>
</tr>
<tr>
<td><p>STATEFUL</p></td>
<td><p>Performs a stateful delete.</p></td>
</tr>
</tbody>
</table>
Expand Down
13 changes: 13 additions & 0 deletions resources/public/api/conf/1.0/retrieve.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ description: |
<td><p>NOT_FOUND</p></td>
<td><p>Simulates the scenario where no data is found.</p></td>
</tr>
<tr>
<td><p>STATEFUL</p></td>
<td><p>Performs a stateful retrieve.</p></td>
</tr>
<tr>
<td><p>DYNAMIC</p></td>
<td><p>The following response values will change to correspond to the values submitted in the request:
<ul>
<li>submittedOn</li>
<li>taxYear</li>
</ul>
</p></td>
</tr>
</tbody>
</table>
Expand Down
13 changes: 12 additions & 1 deletion resources/public/api/conf/common/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,15 @@ It may not be possible to test all scenarios in the sandbox. You can test some s

If you have a specific testing need that is not supported in the sandbox, contact <a href="/developer/support">our support team</a>.

Some APIs may be marked \[test only\]. This means that they are not available for use in production and may change.
Some APIs may be marked \[test only\]. This means that they are not available for use in production and may change.

### Stateful
Some endpoints support STATEFUL gov test scenarios. Stateful scenarios work with groups of endpoints that represent particular types of submissions. For each type you can POST (or PUT) to submit or amend data, GET to retrieve or list data and DELETE to delete data. For example, with a STATEFUL gov test scenario a retrieval will return data based on what you submitted.

The following groups are stateful in the sandbox:
- Disclosures

### Dynamic
Some endpoints support DYNAMIC gov test scenarios. The response is dynamic based on the request parameters:
- Retrieve Disclosures

0 comments on commit 330d161

Please sign in to comment.