NASA-PDS / doi-service

Service and tools for generating DOIs for PDS bundles, collections, and data sets
https://nasa-pds.github.io/doi-service
Other
2 stars 3 forks source link

doi service swagger ui does not work #389

Open tloubrieu-jpl opened 1 year ago

tloubrieu-jpl commented 1 year ago

๐Ÿ› Describe the bug

๐Ÿ“œ To Reproduce

See deployment of 2.3.5 on pds-gamma: https://pds-gamma.jpl.nasa.gov/api/doi/0.2/ui/

๐Ÿ•ต๏ธ Expected behavior

๐Ÿ“š Version of Software Used

๐Ÿฉบ Test Data / Additional context

๐ŸžScreenshots

๐Ÿ–ฅ System Info


๐Ÿฆ„ Related requirements

โš™๏ธ Engineering Details

alexdunnjpl commented 1 year ago

Likely due to missing or incorrect API basepath in deployment configuration

https://swagger.io/docs/specification/2-0/api-host-and-base-path/

alexdunnjpl commented 1 year ago

API requesting https://pds-gamma.jpl.nasa.gov/PDS_APIs/pds_doi_api/0.2/openapi.json

Should be requesting https://pds-gamma.jpl.nasa.gov/api/doi/0.2/openapi.json

Suggests basePath is /PDS_APIs/pds_doi_api/0.2 but should be /api/doi/0.2

alexdunnjpl commented 1 year ago

Candidates for the offending config may be found with grep -r "PDS_APIs", but it's unclear whether this should be fixed by reinstalling with the change provided as a build/install argument.