-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Versioned API Router #149286
Comments
When exploring our design options here, we should consider whether this would also be a good opportunity to introduce a mechanism for more formally labeling routes as "internal": #151940 |
Initial design PR #151596 |
@jloleysens when do we plan on tackling the implementations (server & client-side)? |
I've started looking into this. |
We don't have 100% confidence in the exact version negotiation mechanism, but we believe it should be a low amount of effort to make adjustments to the negotiation mechanism later if necessary so we'll start on this already. |
## Summary Implements the designs from #151596 * Move `packages/versioning/*` into `packages/core/http` to follow existing structure more closely * Implements the first iteration of the versioned router as a wrapper/layer around the existing router * Adds some integration tests * Future work needed! Once we have a the versioned spec we should implement it in this wrapper layer * Validation is a little bit tricky because of when the `CoreKibanaResponse` object is instantiated, the approach taken here is to replace body, params, query on the route-level's request object Closes #149286 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
All plugins need to implement a versioned API layer. But we don't want each plugin to have to implement basic functionality like versioning. How can we enable teams to have their APIs conform to the Elastic versioning strategy (#149285) without having to implement it from the ground up every time?
The text was updated successfully, but these errors were encountered: