Add comprehensive OpenAPI 3.0 specification for Customer Data Service API #182
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Establishes formal API contract. CDS lacked machine-readable API documentation, preventing SDK generation, API testing tool integration, and contract-driven development.
Goals
Provide complete OpenAPI 3.0 specification covering all endpoints, authentication schemes, request/response schemas, error formats, and multi-tenancy support.
Approach
Enhanced
api/customer-data-service.yaml(703→2,340 lines):/t/{tenant}/cds/api/v1/*Created
api/README.md:Validation: OpenAPI 3.0 compliant via swagger-cli
User stories
Release note
Added comprehensive OpenAPI 3.0 specification documenting all CDS API endpoints, authentication schemes, schemas, and error formats. Enables SDK generation, interactive documentation, and API testing tool integration.
Documentation
N/A - This PR adds the API documentation itself. The
api/README.mdprovides usage instructions for the specification.Training
N/A - Documentation change only. Training content should reference the new OpenAPI spec for API contract details.
Certification
N/A - Infrastructure documentation enhancement, no user-facing feature changes requiring certification updates.
Marketing
N/A - Internal API documentation improvement
Automation tests
Security checks
Samples
N/A - The OpenAPI spec itself serves as the canonical reference. README includes authentication examples and SDK generation commands.
Related PRs
None
Migrations (if applicable)
N/A - Additive documentation, no breaking changes
Test environment
Validated on:
Learning
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.