File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed
src/main/resources/templates Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 11<!DOCTYPE html>
2- < html xmlns:th ="http://www.thymeleaf.org ">
2+ < html xmlns:th ="http://www.thymeleaf.org " lang =" es " >
33< head >
44 < meta charset ="UTF-8 ">
5- < title th:text ="${title} "> API Documentation </ title >
5+ < title th:text ="${title} "> SmartPot API Docs </ title >
66 < script src ="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js "> </ script >
77 < style >
88 body {
99 margin : 0 ;
1010 padding : 0 ;
1111 background-color : # 121212 ;
1212 }
13- redoc {
13+ # redoc-container {
1414 height : 100vh ;
1515 }
1616 </ style >
1717</ head >
1818< body >
19- < redoc th:attr ="spec-url=${specUrl} "> </ redoc >
19+ < div id ="redoc-container "> </ div >
20+
21+ < script th:inline ="javascript ">
22+ const specUrl = /*[[${specUrl}]]*/ '/v3/api-docs' ;
23+ Redoc . init ( specUrl , {
24+ scrollYOffset : 20 ,
25+ hideDownloadButton : false ,
26+ theme : {
27+ colors : { primary : { main : '#00b894' } } ,
28+ typography : { fontSize : '16px' , fontFamily : 'Arial, sans-serif' }
29+ }
30+ } , document . getElementById ( 'redoc-container' ) ) ;
31+ </ script >
2032</ body >
21- </ html >
33+ </ html >
You can’t perform that action at this time.
0 commit comments