Change 19557

tjuricek
tjuricek committed this change into //guest/perforce_software/helix-web-services/main/source
Request Review
Download .zip
Add test to ensure that /api/doc/ responds, and fix path to doc from version file.

There is very odd classloading logic in spark for static files (as of 2.5). If you have a resource directory (like we do) it barfs if you try to capture that directory name as a "file-like" path with no trailing slash. This feels like a bug in Spark, but one I'm nonetheless not going to work around quickly. The link from the application version page now works, and we have a basic test to ensure that documentation is indeed being hosted correctly.
  • Files 3
  • Comments 0
2 edited 1 added 0 deleted
automation/build.gradle#27
Loading...
server/src/main/java/com/perforce/hws/server/HelixWebServices.java#2
Loading...
testing/src/main/java/com/perforce/hws/testing/server/DocTests.java#1
Loading...
Tip: Use n and p to cycle through the changes.