6869: Improve OpenAPI spec with descriptions, examples, and error codes#64
Open
turegjorup wants to merge 1 commit intofeature/6869_agent_configfrom
Open
6869: Improve OpenAPI spec with descriptions, examples, and error codes#64turegjorup wants to merge 1 commit intofeature/6869_agent_configfrom
turegjorup wants to merge 1 commit intofeature/6869_agent_configfrom
Conversation
API Specification - Breaking changes detectedAPI Changelog 0.0.0 vs. 1.0.0API ChangesPOST /api/detection_results
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/6869_agent_config #64 +/- ##
===============================================================
- Coverage 12.61% 12.60% -0.02%
- Complexity 819 827 +8
===============================================================
Files 118 119 +1
Lines 2560 2570 +10
===============================================================
+ Hits 323 324 +1
- Misses 2237 2246 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add proper documentation to the auto-generated OpenAPI spec: - API title, description, and version in api_platform.yaml - Operation summary and description for the POST endpoint - Field-level descriptions, examples, and enum for DetectionResult - 401/403 error responses for authentication/authorization failures - Server URL from COMPOSE_SERVER_DOMAIN/COMPOSE_DOMAIN env vars - Security scheme description documenting the Apikey header format Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
168da31 to
7fd86a6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
api_platform.yamlPOST /api/detection_resultsendpointDetectionTypeconstants) fortype,rootDir, anddataOpenApiFactorydecorator for dynamic server URL (fromCOMPOSE_SERVER_DOMAIN/COMPOSE_DOMAIN) and security scheme description documenting theApikeyheader formatapi-spec-v1.yamlandapi-spec-v1.jsonTest plan
composer update-api-specregenerates identical spec files/api/docsrenders descriptions, examples, and enum valuesapi-speccheck passes🤖 Generated with Claude Code