NPA-5088: Update Consent id to be UUID in Spec and Sandbox Examples#214
Conversation
|
This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket: NPA-5088 |
JackPlowman
left a comment
There was a problem hiding this comment.
Couple of comments but nothing major
| | Resource not found | Patch for non-existent Consent, request with an id not listed here | HTTP Status 404 and RESOURCE_NOT_FOUND error response | | ||
| | Invalid state transition | Patch attempting invalid status change, request with id '7b7f47b8-96e5-43eb-b733-283bf1449f2c' | HTTP Status 422 and INVALID_STATE_TRANSITION error response | | ||
| parameters: | ||
| # Change id parameter to Component ConsentID when NPA-5088 is complete |
There was a problem hiding this comment.
Can this comment be followed to reduce duplication
There was a problem hiding this comment.
Also the examples could move to ConsentID component
There was a problem hiding this comment.
Used the ConsentID Comp but didnt add the examples as felt redundant and not relevant to the get consent by id endpoint which uses the ConsentId component to
| # Assume all requests are valid | ||
|
|
||
| if identifier == "c6f48e4d": | ||
| if identifier == "c512b0db-6702-43ee-8c21-bbded2552da9": |
There was a problem hiding this comment.
Could the variable identifier be changed to id in line with the path parameter name
… and updated sandbox
|
This branch is work on a ticket in the NHS Digital NPA JIRA Project. Here's a handy link to the ticket: NPA-5088 |
Pull Request
Ticket Link
https://nhsd-jira.digital.nhs.uk/browse/NPA-5088
Description/Change Summary
How to test?
Review Checklist
ℹ️ This section is to be filled in by the reviewer.
Post-merge
After merging and deploying changes to the sandbox, Postman collection or spec examples please run the
Run Postman collectionworkflow.This will run the tests within the collection to check that the sandbox is working as expected once deployed.