Bug 56314 - Bundle swagger web-ui dependencies instead of loading external resources
Summary: Bundle swagger web-ui dependencies instead of loading external resources
Status: CLOSED FIXED
Alias: None
Product: UCS@school
Classification: Unclassified
Component: HTTP-API (Kelvin)
Version: UCS@school 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: UCS@school 5.0 v5-errata
Assignee: Christian Castens
QA Contact: Marius Meschter
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-14 09:27 CEST by Christina Scheinig
Modified: 2024-07-25 08:47 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023062821000293
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments
Screenshot (53.42 KB, image/png)
2023-07-14 09:27 CEST, Christina Scheinig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2023-07-14 09:27:12 CEST
Created attachment 11091 [details]
Screenshot

The customer is not happy with this URL, because it is external and not internal

https://cdn.jsdelivr.net/npm/swagger-ui-dist@4/swagger-ui-bundle.js
Is there any chance to have this internal?

https://fastapi.tiangolo.com/advanced/extending-openapi/?h=#self-hosting-javascript-and-css-for-docs
Comment 3 Christian Castens univentionstaff 2024-07-24 20:27:31 CEST
Swagger UI and Redoc are now served statically instead of using CDNs.

ucsschool-kelvin-rest-api 1.10.1

ad2fb171af60 | Bug #56314: serve swagger-ui statically instead of using CDN
Comment 4 Marius Meschter univentionstaff 2024-07-25 08:47:32 CEST
QA:
OK: redoc and swagger UI assets statically served 
OK: jenkins tests
OK: manual test
OK: app released