Closed lukeelmers closed 1 month ago
Pinging @elastic/kibana-core (Team:Core)
@jloleysens WDYT about reusing injectResponseHeaders
in the non-versioned router?
Would we need to make additional changes?
Yeah I think we can totally use that helper function. Should be pretty straight-forward to add this! Happy to take a look unless you've already started.
Currently not all HTTP APIs appear to be returning an
elastic-api-version
header in the response. I'm guessing this has something to do with which routes have moved over to using the versioned router.Whether or not a route has moved over to the versioned router is an implementation detail... by default, all public APIs should be returning this header. If they haven't moved to the versioned router and explicitly declared a version, they are still implicitly versioned as
2023-10-31
.Example:
GET /api/data_view
-> returns version headerGET /api/stats
-> no version headerThis is something we should look to address before serverless GA.