-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TT-13890: request debug endpoint #6862
Conversation
Swagger Changes
_ __ __
example:
examples:
oas:
oneOf:
_| |_ _ / _|/ _| between swagger-prev.yml
+ one map entry added:
+ one map entry added:
+ one map entry added:
- one map entry removed:
± value change
/ _' | | | | |_| |_ and swagger-current.yml
\__,_|\__, |_| |_| returned four differences
components.schemas.TraceRequest
components.schemas.TraceRequest.properties
paths./tyk/debug.post.requestBody.content.application/json
paths./tyk/debug.post.summary
| (_| | |_| | _| _| |
API Changes no api changes detected |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
…ologies/tyk into TT-13890-request-debug-endpoint
Quality Gate passedIssues Measures |
User description
TT-13890
TT-13890
Description
As we're building the OAS debugger screen, we need to extend the /debug endpoint to accept OAS Api definitions in the payload.
the
/debug
endpoint accepts nowoas
key in the payload.Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Extended
/debug
endpoint to support OAS API definitions.Updated test cases to validate OAS support in
/debug
.Enhanced Swagger documentation with OAS examples and descriptions.
Refactored
traceHandler
to handle OAS payloads effectively.Changes walkthrough 📝
gateway_test.go
Add test cases for OAS support in `/debug`
gateway/gateway_test.go
/debug
endpoint.oasSpec
for testing OAS-specific scenarios.tracing.go
Update `traceHandler` to support OAS payloads
gateway/tracing.go
OAS
field totraceRequest
struct.traceHandler
to process OAS payloads.swagger.yml
Update Swagger documentation for OAS support
swagger.yml
/debug
endpoint.