perfsonar / psconfig-web

pSConfig Web Admin
Apache License 2.0
7 stars 9 forks source link

REST API doc not accessible using https://hostname/pwa/apidoc/ #225

Closed skulambi closed 2 years ago

skulambi commented 2 years ago

Hi,

I am able to use PWA for configuration purpose works fine, but the link for apidoc is not working using below link -

https://192.168.122.99/pwa/apidoc/ which is mentioned in http://docs.perfsonar.net/pwa_api.html

Is there any other configuration which is required to access the REST API documentation?

Thanks

skulambi commented 2 years ago

What I observed was the 'assets' folder from source code 'psconfig-web/ui/apidoc/assets' is missing after the PWA is installation on the target (/usr/lib/perfsonar/psconfig-web-admin/ui/ui/apidoc - 'assets' folder missing here) which is causing the issue. After copying the 'assets' folder was able to access the REST API documentation.

ksandeep-palc commented 2 years ago

Raised a PR - https://github.com/perfsonar/psconfig-web/pull/226

grigutis commented 2 years ago

Accepted. Thank you!

ksandeep-palc commented 2 years ago

Thanks @grigutis !!