redhat-cop / pathfinder

Apache License 2.0
41 stars 37 forks source link

Add Swagger API docs #156

Closed matallen closed 4 years ago

matallen commented 5 years ago

to view the api webpage, visit http://localhost:8080 (or whatever the pathfinder-server url is)

matallen commented 5 years ago

regressed back to "In Progress" because although it works running locally, it appears to http 404 when deployed on openshift [1]. This needs resolving.

[1] http://pathfinder-server-pathfinder-dev.int.open.paas.redhat.com

matallen commented 5 years ago

fixed - added the docs resources to src/main/resources/static which spring boot maven plugin puts into the final artifact. It appears spring-boot-maven plugin is serving resources directly from the project when you run the mvn goals (a major principals fail), so when you deploy a built artifact it no longer had access to the html to serve. Bottom line is spring boot deploys a completely different artifact to the one you run in the project, so ensure all future tests are against a built & deployed artifact! (which is going to slow testing down enormously)