Repository navigation
Conversation
| The following scenarios are candidates for HTTP `2xx` responses with business-level outcomes: | ||
|
|
||
| * **Service available with degraded precision:** The API can provide a response with lower precision, accuracy, or completeness than the ideal case (e.g., location data with reduced accuracy). | ||
| * **Service temporarily unavailable:** The service cannot be provided at this moment but may be available later; the response includes valuable context for the API consumer (e.g., device temporarily not reachable, but retry advised). |
There was a problem hiding this comment.
I’d make the description clearer that the endpoint returned a valid status, even though the underlying service is unavailable:
Service temporarily unavailable: The request was processed successfully but the service cannot be provided at this moment but may be available later; the response includes valuable context for the API consumer (e.g., device temporarily not reachable, but retry advised).
There was a problem hiding this comment.
thanks for the comment @bigludo7. Better and clearer scenario
bigludo7
left a comment
There was a problem hiding this comment.
Thanks @PedroDiez
Look good for me - just a suggestion for the 200 to make if clearer.
|
Hi @PedroDiez I'd like clearer guidance on when a
Both error responses imply that the API consumer can try again later and it may work then. The implication is that:
Is that the difference? If so, the description in the PR plus the existing description for the |
…o business_level_outcome_scenarios_guidance
Agree with it
Agree with it @eric-murray. I will be updating the PR to reflect this |
|
Please @bigludo7, @eric-murray, if you can take a look about current proposal address your comments |
bigludo7
left a comment
There was a problem hiding this comment.
Look good to me Pedro !
Thanks
What type of PR is this?
What this PR does / why we need it:
Updates the CAMARA API Design Guide with common criteria for distinguishing business-level outcomes in
2xxresponses from4xxerrors.Clarifies that
2xxcovers valid results that may be degraded, temporary, partial, or empty, while4xxapplies to validation, authorization, resource, conflict, or permanent inability failures.Adds scenarios and decision criteria to promote consistent interpretation across CAMARA initiatives.
Which issue(s) this PR fixes:
Fixes #589
Does this PR introduce a breaking change?
Special notes for reviewers:
Changelog input
Additional documentation
This section can be blank.