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

Reflect interceptor details in the generated OAS #6028

Open
lnash94 opened this issue Feb 6, 2024 · 0 comments
Open

Reflect interceptor details in the generated OAS #6028

lnash94 opened this issue Feb 6, 2024 · 0 comments

Comments

@lnash94
Copy link
Member

lnash94 commented Feb 6, 2024

Summary

In the context of a REST API, an interceptor refers to a mechanism or component that allows you to intercept and manipulate HTTP requests and responses at various points in their lifecycle. Interceptors provide a way to add cross-cutting concerns, such as authentication, logging, error handling, or custom headers, to the processing flow of an API.

Goals

By incorporating interceptor details into the OAS, we aim to enhance the clarity, consistency, and automation capabilities of our API documentation. This approach ensures that developers and other stakeholders have a comprehensive understanding of how interceptors influence API behaviour and how they can be configured.

Interceptors are designed for both request and response flows. There are just service objects which will be executed in a configured order to intercept request and response. These interceptor services can only have either a resource method or a remote method depending on the interceptor type. FLoowing are the main areas we focused for the mapping interceptor details into OAS.

  • Request interceptor
  • Response interceptor
  • Request error interceptor and response error interceptor
  • Engaging interceptors
  • Data binding

Non-Goals

Motivation

Success Metrics

Description

Alternatives

Testing

Risks and Assumptions

Dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

1 participant