nextgenhealthcare / connect

The swiss army knife of healthcare integration.
Other
932 stars 280 forks source link

[BUG] Unable to access the /api/openapi.json link in the ClientAPI page. #5896

Open mcswaip1 opened 1 year ago

mcswaip1 commented 1 year ago

Describe the bug Clicking on the link to the "/api/openapi.json" in the Mirth Connect Client API page (Swagger) generates the following error.

To Reproduce Setup steps (if required). Example:

  1. Have a system that has Mirth Connect 4.4.0 installed and configured
  2. Open the Mirth Connect Administrator

Steps to reproduce the behavior:

  1. On the left hand side click on the View Client API link
  2. In the Swagger web page, click on the link below the title (NextGen Connect Client API)
  3. See error

Expected behavior The openapi.json file is either downloaded or opened.

Actual behavior An error is generated.

Screenshots image

Environment (please complete the following information):

Workaround(s)

  1. Have Postman
  2. Create a new tab and enter the URL for the "/api/users/_login"
  3. Add the username and password to the Params
  4. Make sure to set the "Content-Type" to be "application/x-www-form-urlencoded"
  5. Set the Action to "POST"
  6. Click on Send
  7. Create another new tab and enter the URL for the openjson.api file from the Swagger page (ex: https://my.fqdn.com:8443/api/openapi.json)
  8. The new request should have the cookie from the previous request listed in the Headers
  9. Click on "Send"
  10. The response body should have the contents of the openapi.json file.

Additional context None.

pacmano1 commented 1 week ago

if needed.

curl -u admin:*.00Collie -H "X-Requested-With:OpenAPI" https://127.0.0.1:8443/api/openapi.json --insecure