Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sandilya91
Copy link
Contributor

@sandilya91 sandilya91 commented Aug 15, 2025

Updated the Public API documentation errors section to accurately reflect the current error response formats found in the codebase and in this documentation https://accredible.atlassian.net/wiki/x/BYBY8g

Current Errors page:

https://docs.api.accredible.com/#section/Errors

New Errors page:

https://2e20ca7d.accredible-api-documentation.pages.dev/#section/Errors

Screenshot 2025-08-17 at 17 34 02

Ordered in ascending order of HTTP status code

- Simplify v1/v2 documentation to unified approach focusing on common patterns
- Document real bulk operation differences between API versions
- Update OpenAPI schemas to match current controller implementations
- V1 bulk: all-or-nothing with ActiveRecord error arrays
- V2 bulk: mixed results with structured errors and 207 Multi-Status

Fixes documentation accuracy and reduces developer confusion.
Copy link

cloudflare-workers-and-pages bot commented Aug 15, 2025

Deploying accredible-api-documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: 12be98b
Status: ✅  Deploy successful!
Preview URL: https://2e20ca7d.accredible-api-documentation.pages.dev
Branch Preview URL: https://docs-dgr-2399-update-errors.accredible-api-documentation.pages.dev

View logs

@sandilya91 sandilya91 force-pushed the docs/dgr-2399/update-errors-section-current-state branch from fb387e3 to 43633c1 Compare August 15, 2025 16:20
@sandilya91 sandilya91 force-pushed the docs/dgr-2399/update-errors-section-current-state branch from 43633c1 to 12be98b Compare August 15, 2025 16:29
@sandilya91 sandilya91 marked this pull request as ready for review August 15, 2025 17:06
@sandilya91 sandilya91 self-assigned this Aug 15, 2025
Copy link
Contributor

@abhisheksarka abhisheksarka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sandilya91 Our Public API Errors are not standardized. Were you able to verify that these structures are correct?

@sandilya91
Copy link
Contributor Author

sandilya91 commented Aug 18, 2025

@sandilya91 Our Public API Errors are not standardized. Were you able to verify that these structures are correct?

@abhisheksarka Yeah so went through this document https://accredible.atlassian.net/wiki/x/BYBY8g along with API responses from our accredible-credential-api repo. The context was one of the clients wanted more information on our errors so tried to provide example responses for each HTTP status code as possible

Copy link
Contributor

@navneet-kumar-ghub navneet-kumar-ghub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@sandilya91 sandilya91 merged commit 0ffd4fc into develop Aug 19, 2025
1 check passed
@sandilya91 sandilya91 deleted the docs/dgr-2399/update-errors-section-current-state branch August 19, 2025 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants