Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reference documentation link to error responses #156

Closed
eric-murray opened this issue Mar 5, 2024 · 1 comment
Closed

Add reference documentation link to error responses #156

eric-murray opened this issue Mar 5, 2024 · 1 comment
Labels
backlog enhancement New feature or request

Comments

@eric-murray
Copy link
Collaborator

Problem description
CAMARA error responses are necessarily brief, and can only give limited information on what caused the error. It can be difficult for a developer to understand why their request was not accepted by the service API based on the error response alone. Good documentation is useful, of course, but this would need to be extensive to identify all request format requirements, making it difficult for a developer to find the relevant section dealing with their particular problem.

Possible evolution
Some error response formats allow for a resolvable documentation link (URL) to be included in the error response. This can have various names, some of which a developer may already intuitively understand, such as "type" / "@type", "href" or "referenceError".

This issue does not propose a specific name. That can be discussed within the comments, and depends upon how closely CAMARA wishes to conform to existing standards and conventions.

It would not be expected that such documentation links would be provided in production systems. This proposal is to make it easier for developers to learn how to access CAMARA APIs, not to automate error handling.

Alternative solution
None proposed

Additional context
This issues replaces issue #133, which is now closed. A separate issue will be raised as to whether the CAMARA error response schema should conform to RFC 9457.

@eric-murray
Copy link
Collaborator Author

Closing as no interest. We will need to rely on good documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants