elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.69k stars 8.12k forks source link

[APM] Add documentation for APM APIs #129061

Open dannycroft opened 2 years ago

dannycroft commented 2 years ago

In order to provide users with the best and most accurate documentation, all APM app API endpoints must be documented with the OpenAPI specification.

Initial support was added in https://github.com/elastic/kibana/pull/180096, but these are manually generated and incomplete.

We should probably stay as close as possible to the implementation for the SLO APIs: https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/slo/docs/openapi/slo

Consult with @elastic/obs-ux-management-team to determine observability standards for generating, maintaining, and publishing OpenAPI specs.

✅ Acceptance criteria

elasticmachine commented 2 years ago

Pinging @elastic/apm-ui (Team:apm)

jasonrhodes commented 2 years ago

+1 I want this too

elasticmachine commented 5 months ago

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

smith commented 3 months ago

The Kibana team has provided guidance and tooling for OpenAPI docs: https://groups.google.com/a/elastic.co/g/kibana-contributors/c/sQunk3FUzA0/m/B1Olq4RhAAAJ?utm_medium=email&utm_source=footer

We might have to consider whether what's provided there will work best with the way we use io-ts, etc., but let's begin the discussion by looking at what they've started.

jasonrhodes commented 3 months ago

Hey @smith -- this is something @maryam-saeidi has been looking into. She'll work with @miltonhultgren who is helping lead the "low level API guidelines" effort via https://docs.google.com/document/d/12AL5ItHs3L9qrWAvIewkvSFJjnly6kOOVhWOVPESSyY/edit

maryam-saeidi commented 2 months ago

FYI, related investigation: OpenAPI Specification (OAS) in Observability