Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1999

The /openapi endpoint needs both query param *and* Accept header to return JSON

    Details

      Description

      When accessing the OpenAPI definition for a jax-rs app with MP+OpenAPI enabled, the following endpoint is used:

      /openapi

      This endpoint returns the generated OpenAPI document. The return type is YAML by default. There are two ways to alter the http request to ask the server for JSON instead. You can add a "format=JSON" query parameter OR you can send "application/json" as the Accept header.

      The current implementation requires that BOTH of these conditions are met before it will return JSON.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  michbeck100 Michael Kotten
                  Reporter:
                  eric.wittmann Eric Wittman
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: