Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger UI for prod #254

Merged
merged 2 commits into from Mar 2, 2023
Merged

Swagger UI for prod #254

merged 2 commits into from Mar 2, 2023

Conversation

tloubrieu-jpl
Copy link
Member

@tloubrieu-jpl tloubrieu-jpl commented Feb 23, 2023

🗒️ Summary

Make swagger-ui work with:

  • NASA/PDS wrapping
  • Other specific support information (contact, user guide, external docs…)
  • validation behind a reverse proxy, see registry PR
  • Organization of end-points, simplification
  • Support * and / Accept format
  • Switch text/html response to pure JSON

⚙️ Test Data and/or Report

Use PR NASA-PDS/registry#166

♻️ Related Issues

Fixes #245
Fixes #211
Fixes https://github.com/nasa-pds/pds-api/issues/239
Fixes https://github.com/nasa-pds/pds-api/issues/193
NASA-PDS/pds-api#253

@tloubrieu-jpl
Copy link
Member Author

Conflicts have been removed but integration tests (postman) do not work on it. It sounds like they do not work on the main branch either but they used to work on this branch (before it was rebase on main).

I will investigate that before we do a review.

start to solve compilation issues

migrate to spring-doc, tested with reverse proxy, logo reintegrated

reintegrate other swagger-ui customization

sort end-points in swagger-ui, make * Accept header work, start to fix contextPath for references

return application/json for Accept:text/html, have reference url work behind reverse proxy

add forgotten files
@tloubrieu-jpl tloubrieu-jpl merged commit 13039aa into main Mar 2, 2023
@tloubrieu-jpl tloubrieu-jpl deleted the swagger-ui-for-prod branch March 2, 2023 21:56
tloubrieu-jpl added a commit to NASA-PDS/registry that referenced this pull request Mar 9, 2023
* set the port of the reverse proxy properly

* update tests, order swagger-ui tags alphabetically

---------

Co-authored-by: thomas loubrieu <thomas.loubrieu@jpl.nasa.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

organize the swagger-ui section in a better way swaggger ui error in production
2 participants