as our plugin grows, more APIs are being added to it. It would be good to have API docs for our endpoints. OpenAPI is used at Elastic to document APIs (external and internal), it makes to use it too, even though we don't have public APIs at the time of writing this ticket. Also consider code generation options (one option linked in the comment) to avoid the need to always keep docs and interfaces in sync.
Motivation Created after this PR comment
as our plugin grows, more APIs are being added to it. It would be good to have API docs for our endpoints. OpenAPI is used at Elastic to document APIs (external and internal), it makes to use it too, even though we don't have public APIs at the time of writing this ticket. Also consider code generation options (one option linked in the comment) to avoid the need to always keep docs and interfaces in sync.