-
Notifications
You must be signed in to change notification settings - Fork 3
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
Develop NASA/PDS Skin for Search API Swagger interface #194
Comments
@tloubrieu-jpl will provide inputs he found on the web |
To change the skin of the swagger-ui page, here is the procedure I was thinking of from what I search online:
|
@tloubrieu-jpl, @jordanpadams, @viviant100, or @jimmie, is there documentation somewhere on where we have these deployed or how to do it locally? I found personal notes on how to connect to the validation API on dev 3 via ssh tunnel, but I'm getting "Connection refused" messages inn my terminal. I also searched through our internal wiki but have missed it if it's there. Thank you in advance! |
@c-suh I think you just need to spin up the registry API: https://github.com/NASA-PDS/registry-api/blob/main/README.md#build, but I don't know what the URL is on localhost once it is running... |
@c-suh I just merged an update of registry-api in branch https://github.com/NASA-PDS/registry-api/tree/release/1.0.1 which fixes the swagger-ui page. |
@c-suh is having difficulties with using the docker compose on her laptop. opensearch is exited. |
During breakout, have figured out how to get elasticsearch running. Have instructions on how to get dev environment set up and will be attempting that. |
Have successfully run |
Am momentarily delayed by having to set up environments on another laptop. |
Got everything set up again then was sidetracked by other tasks. Am back on this and have finally got the swagger-ui showing. There was an issue caused by a mismatch between registry-api-model and registry-api-service in their springfox-version. Have noticed that the swagger-ui for this is different from that which shows with registry's int-registry-service-loader and will ask at tomorrow's meeting if this should be addressed. |
Back from vacation and being sick. Issue mentioned above is now null because Al fixed it. Getting back on track with original task. |
Further investigation on behavior prior to making changes. |
I think I've finally managed to piece together some understanding of how this works. I've disabled springfox 3's default swagger-ui and have my own swagger-ui files running with the application. Next steps are to find an optimal place to change the logo and styling, package these into a jar, integrate this into maven's build process, and to verify that I haven't compromised any use of swagger's security that the other developers may be making use of. |
@c-suh let us know if you need any assistance. it would be great if this could be done by our sprint review next Thursday. |
There seem to be 2 methods:
|
changes: - disable springfox-swagger-ui auto documentation - customize files from swagger-api/swagger-ui repository (v4.14.0) - exchange Swagger logo for NASA's - add PDS footer - collapse all `opblocks` on start, similar to springfox-swagger-ui Start to NASA-PDS/pds-api#194
changes: - disable springfox-swagger-ui auto documentation - customize files from swagger-api/swagger-ui repository (v4.14.0) - exchange Swagger logo for NASA's - add PDS footer - collapse all `opblocks` on start, similar to springfox-swagger-ui Start to NASA-PDS/pds-api#194
Sorry, I just found this and a few other legitimate messages in my spam folder. Wasn't this email migration supposed to be a good thing?
Anyways, all the credit goes to you as the one who did all the heavy lifting in this scenario! Although, I did fix that lower case 'f' for Federated. I feel so tired now.
j
From: Catherine Suh ***@***.***>
Date: Friday, September 16, 2022 at 10:26 AM
To: NASA-PDS/pds-api ***@***.***>
Cc: Jimmie Young ***@***.***>, Mention ***@***.***>
Subject: [EXTERNAL] Re: [NASA-PDS/pds-api] Develop NASA/PDS Skin for Search API Swagger interface (Issue #194)
Thanks to Jimmie, this look is merged into the main branch!
[nasa-pds-swagger]<https://urldefense.us/v3/__https:/user-images.githubusercontent.com/18314609/190696789-2fd2e31c-87b4-41e3-82fb-ed84ce87da4a.jpg__;!!PvBDto6Hs4WbVuu7!ae-uMxEzHqjpYbYLBvDRDvPICaBSAJcheWdXSK0S-5Z7ZufEAPMPqPTCTSlMx2_AGzxc$>
—
Reply to this email directly, view it on GitHub<https://urldefense.us/v3/__https:/github.com/NASA-PDS/pds-api/issues/194*issuecomment-1249610296__;Iw!!PvBDto6Hs4WbVuu7!ae-uMxEzHqjpYbYLBvDRDvPICaBSAJcheWdXSK0S-5Z7ZufEAPMPqPTCTSlMx0_A5KAU$>, or unsubscribe<https://urldefense.us/v3/__https:/github.com/notifications/unsubscribe-auth/AABCTDUUWJ7A7VB3AANPAZLV6SUU3ANCNFSM5YLE5Y7A__;!!PvBDto6Hs4WbVuu7!ae-uMxEzHqjpYbYLBvDRDvPICaBSAJcheWdXSK0S-5Z7ZufEAPMPqPTCTSlMx6sqiJRY$>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@jimmie @jordanpadams does that mean we could forward with the publication of the swagger web page. Note that I am not seeing the nasa logo on my integration deployment here, but this is a detail that we can look at later. |
@tloubrieu-jpl I think so? But now that I think about it, I've never seen a demo of this. @c-suh have you demoed this? And if not, can you demo how to make this at the sprint review? |
This use to work in system-i-n-t 30, but now I don't see the jpl skin using registry docker. |
@tloubrieu-jpl @miguelp1986 @ramesh-maddegoda @alexdunnjpl any input here? |
my bad, works after purging docker images. |
💡 Description
Details TBD with help/input from @tloubrieu-jpl @jimmie for documentation on how to update this.
The text was updated successfully, but these errors were encountered: