Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16380

Add OpenAPI decoration to v2 APIs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • main (10.0)
    • None
    • v2 API
    • None

    Description

      SOLR-16346 introduces (or will introduce) a build integration that generates an OpenAPI spec covering Solr's v2 APIs. This spec can then be used with other tooling to do cool things, like generate bindings and clients for various programming languages.

      Converting our v2 APIs to JAX-RS will ensure each API some fundamental coverage in the OpenAPI spec. But this won't put any information in the spec about what each API input "does", or what each output "means" in a response from Solr. To make our spec (and thus our generated clients) more useful, we should decorate each JAX-RS API with OpenAPI annotations that document the API overall and describe its inputs and outputs. This will make our generated clients much easier to use. (We should ensure that this is done in a way that avoids duplication of this information in the ref-guide, perhaps making use of the OpenAPI tooling's asciidoctor generator to populate sections of the ref-guide at build time.)

      This ticket aims to be an umbrella for adding this OpenAPI "decoration": PRs for individual APIs or groups of APIs can be handled by specific subtasks.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gerlowskija Jason Gerlowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: