On 14/10/20 11:06, Dmitriy Brashevets wrote: > > Hi Franchesco. > > > > My fault. > > I’m running Apache Syncope *2.1.6* instead of *2.0.16.* > > Sorry again for this typo. > No problems :-)
About 2.1.6 (and 2.1.7 of course) we have several running projects, all with Swagger UI enabled, all working fine. I'd suggest anyway to proceed as indicated below to check your generated openapi.json. Regards. > *From:* Francesco Chicchiriccò <ilgro...@apache.org> > *Sent:* Wednesday, October 14, 2020 10:27 AM > *To:* user@syncope.apache.org > *Subject:* Re: Fwd: How to generate swagger documentation > > > > Hi Dmitriy, > I have just generated a new Syncope 2.0.16 project following > > http://syncope.apache.org/docs/2.0/getting-started.html#create-project > > > > then built via > > > > mvn -Pall clean install > > > > and finally run via > > > > cd enduser > mvn -Pall,embedded > > > > Swagger UI worked fine after accessing > > http://localhost:9080/syncope/swagger/ > > > > and making some sample queries. > > > > Coming to your issue, I would suggest first to check that you have been > actually following > > > > https://syncope.apache.org/docs/2.0/reference-guide.html#customization-core > > and not > > https://syncope.apache.org/docs/2.1/reference-guide.html#customization-core > > > > as you are writing below. > > > > Secondly, try to access > > [protocol]://[host]:[port]/syncope/rest/openapi.json > > > > and see what result you get; naturally, watch the Core logs as well. > > > > HTH > Regards. > > > > On 13/10/20 16:39, Dmitriy Brashevets wrote: > > Hi Apache Syncope guys. > > What version of Apache Syncope are you running? > I’m trying to run the *Apache Syncope 2.0.16* on *Tomcat 9.0.39*. > > I’m able run the Apache Syncope Core and I also enabled Swagger extension > like described here > <https://syncope.apache.org/docs/2.1/reference-guide.html#customization-core>, > but when I’m accessing swagger I’m having an error: > > > > Uncaught SyntaxError: Invalid regular expression: > /[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-Ë�ˆ-Ë‘Ë > -ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-Ò�ÒŠ-Ô¯Ô±-Õ–Õ™Õ¡-Ö‡×�-תװ-×²Ø > -يٮٯٱ-Û“Û•Û¥Û¦Û®Û¯Ûº-Û¼Û¿Ü�Ü’-ܯÝ�-ޥޱߊ-ßªß´ßµßºà €-à •à šà ¤à > ¨à¡€-ࡘࢠ> -ࢴऄ-हऽà¥�क़-ॡॱ-ঀঅ-ঌà¦�à¦�ও-নপ-রলশ-হঽৎড়à§�à§Ÿ-ৡৰৱਅ-ਊà¨�à¨�ਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-àª�àª�-ઑઓ-નપ-રલળવ-હઽà«�à« > > ૡૹଅ-ଌà¬�à¬�ଓ-ନପ-ରଲଳଵ-ହଽàœà�àŸ-à¡à±à®ƒà®…-ஊஎ-à®�à®’-கஙசஜஞடணதந-பம-ஹà¯�à°…-ఌఎ-à°�à°’-నప-హఽౘ-ౚౠ> ౡಅ-ಌಎ-à²�ಒ-ನಪ-ಳವ-ಹಽೞೠ> ೡೱೲഅ-ഌഎ-à´�à´’-ഺഽൎൟ-ൡൺ-ൿඅ-à¶–à¶š-නඳ-රලව-à·†à¸�-ะาำเ-ๆàº�ຂຄງຈຊàº�ດ-ທນ-ຟມ-ຣລວສຫàº-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿá��-á�•á�š-á��á�¡á�¥á�¦á�®-á�°á�µ-á‚�ႎႠ> -ჅჇáƒ�áƒ�-ჺჼ-ቈቊ-á‰�á‰�-ቖቘቚ-á‰�በ> -ኈኊ-áŠ�áŠ�-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-áŒ�ጒ-ጕጘ-á�šáŽ€-áŽ�Ꭰ> -á�µá�¸-á�½á��-ᙬᙯ-ᙿáš�-áššáš -ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱá�€-á�‘á� > -á�¬á�®-á�°áž€-ឳៗៜá > -ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞá¥�-á¥á¥°-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ> -ᩔᪧᬅ-ᬳá…-á‹á®ƒ-á® > ᮮᮯᮺ-ᯥᰀ-á°£á±�-á±�ᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-á¼�á¼ > -ὅὈ-á½�á½�-ὗὙὛá½�Ὗ-ώᾀ-á¾´á¾¶-ᾼιῂ-ῄῆ-ῌá¿�-á¿“á¿–-Ίῠ> > -Ῥῲ-á¿´á¿¶-ῼâ�±â�¿â‚�-ₜℂℇℊ-â„“â„•â„™-â„�ℤΩℨK-â„ℯ-ℹℼ-â„¿â……-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ> -ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧâ´â´°-ⵧⵯⶀ-â¶–â¶ > -ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-â·Žâ·�-â·–â·˜-ⷞⸯ々〆〱-〵〻〼ã��-ã‚–ã‚�-ゟァ-ヺー-ヿㄅ-ã„ㄱ-ㆎㆠ> -ㆺㇰ-ㇿã�€-䶵一-鿕ꀀ-ê’Œê“�-ꓽꔀ-ꘌê˜�-ꘟꘪꘫꙀ-ꙮꙿ-êš�êš > -ꛥꜗ-ꜟꜢ-ꞈꞋ-êžêž°-ꞷꟷ-ê �ê ƒ-ê …ê ‡-ê Šê Œ-ê > ¢ê¡€-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ê¥†ê¥ -ꥼꦄ-ꦲê§�ê§ > -ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ê©‚ê©„-ê©‹ê© > -ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ê«�ê« > -ꫪꫲ-ê«´ê¬�-ꬆꬉ-ꬎꬑ-ê¬–ê¬ > -ꬦꬨ-ꬮꬰ-êšêœ-ê¥ê°-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-ï©ï©°-龎ff-stﬓ-ﬗï¬�ײַ-ﬨשׁ-זּטּ-לּמּï€ï�ïƒï„ï†-ﮱﯓ-ï´½ïµ�-ï¶�ï¶’-ﷇﷰ-ﷻﹰ-ï¹´ï¹¶-ﻼA-Zï½�-zヲ-하-ᅦᅧ-ï¿�ï¿’-ᅲᅳ-ᅵ0-9Ù > > -Ù©Û°-۹߀-߉०-९০-৯੦-੯૦-૯à¦-à¯à¯¦-௯౦-౯೦-೯൦-൯෦-à·¯à¹�-๙à»�-໙༠> -༩á�€-á�‰á‚�-႙០-៩á �-á > ™á¥†-á¥�á§�-᧙᪀-᪉áª�-᪙á�-á™á®°-᮹᱀-᱉á±�-á±™ê˜ > -꘩ê£�-꣙꤀-꤉ê§�-꧙꧰-ê§¹ê©�-꩙꯰-꯹ï¼�-ï¼™.\-]*[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-Ë�ˆ-Ë‘Ë > -ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-Ò�ÒŠ-Ô¯Ô±-Õ–Õ™Õ¡-Ö‡×�-תװ-×²Ø > -يٮٯٱ-Û“Û•Û¥Û¦Û®Û¯Ûº-Û¼Û¿Ü�Ü’-ܯÝ�-ޥޱߊ-ßªß´ßµßºà €-à •à šà ¤à > ¨à¡€-ࡘࢠ> -ࢴऄ-हऽà¥�क़-ॡॱ-ঀঅ-ঌà¦�à¦�ও-নপ-রলশ-হঽৎড়à§�à§Ÿ-ৡৰৱਅ-ਊà¨�à¨�ਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-àª�àª�-ઑઓ-નપ-રલળવ-હઽà«�à« > > ૡૹଅ-ଌà¬�à¬�ଓ-ନପ-ରଲଳଵ-ହଽàœà�àŸ-à¡à±à®ƒà®…-ஊஎ-à®�à®’-கஙசஜஞடணதந-பம-ஹà¯�à°…-ఌఎ-à°�à°’-నప-హఽౘ-ౚౠ> ౡಅ-ಌಎ-à²�ಒ-ನಪ-ಳವ-ಹಽೞೠ> ೡೱೲഅ-ഌഎ-à´�à´’-ഺഽൎൟ-ൡൺ-ൿඅ-à¶–à¶š-නඳ-රලව-à·†à¸�-ะาำเ-ๆàº�ຂຄງຈຊàº�ດ-ທນ-ຟມ-ຣລວສຫàº-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿá��-á�•á�š-á��á�¡á�¥á�¦á�®-á�°á�µ-á‚�ႎႠ> -ჅჇáƒ�áƒ�-ჺჼ-ቈቊ-á‰�á‰�-ቖቘቚ-á‰�በ> -ኈኊ-áŠ�áŠ�-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-áŒ�ጒ-ጕጘ-á�šáŽ€-áŽ�Ꭰ> -á�µá�¸-á�½á��-ᙬᙯ-ᙿáš�-áššáš -ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱá�€-á�‘á� > -á�¬á�®-á�°áž€-ឳៗៜá > -ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞá¥�-á¥á¥°-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ> -ᩔᪧᬅ-ᬳá…-á‹á®ƒ-á® > ᮮᮯᮺ-ᯥᰀ-á°£á±�-á±�ᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-á¼�á¼ > -ὅὈ-á½�á½�-ὗὙὛá½�Ὗ-ώᾀ-á¾´á¾¶-ᾼιῂ-ῄῆ-ῌá¿�-á¿“á¿–-Ίῠ> > -Ῥῲ-á¿´á¿¶-ῼâ�±â�¿â‚�-ₜℂℇℊ-â„“â„•â„™-â„�ℤΩℨK-â„ℯ-ℹℼ-â„¿â……-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ> -ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧâ´â´°-ⵧⵯⶀ-â¶–â¶ > -ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-â·Žâ·�-â·–â·˜-ⷞⸯ々〆〱-〵〻〼ã��-ã‚–ã‚�-ゟァ-ヺー-ヿㄅ-ã„ㄱ-ㆎㆠ> -ㆺㇰ-ㇿã�€-䶵一-鿕ꀀ-ê’Œê“�-ꓽꔀ-ꘌê˜�-ꘟꘪꘫꙀ-ꙮꙿ-êš�êš > -ꛥꜗ-ꜟꜢ-ꞈꞋ-êžêž°-ꞷꟷ-ê �ê ƒ-ê …ê ‡-ê Šê Œ-ê > ¢ê¡€-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ê¥†ê¥ -ꥼꦄ-ꦲê§�ê§ > -ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ê©‚ê©„-ê©‹ê© > -ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ê«�ê« > -ꫪꫲ-ê«´ê¬�-ꬆꬉ-ꬎꬑ-ê¬–ê¬ > -ꬦꬨ-ꬮꬰ-êšêœ-ê¥ê°-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-ï©ï©°-龎ff-stﬓ-ﬗï¬�ײַ-ﬨשׁ-זּטּ-לּמּï€ï�ïƒï„ï†-ﮱﯓ-ï´½ïµ�-ï¶�ï¶’-ﷇﷰ-ﷻﹰ-ï¹´ï¹¶-ﻼA-Zï½�-zヲ-하-ᅦᅧ-ï¿�ï¿’-ᅲᅳ-ᅵ0-9Ù > > -Ù©Û°-۹߀-߉०-९০-৯੦-੯૦-૯à¦-à¯à¯¦-௯౦-౯೦-೯൦-൯෦-à·¯à¹�-๙à»�-໙༠> -༩á�€-á�‰á‚�-႙០-៩á �-á > ™á¥†-á¥�á§�-᧙᪀-᪉áª�-᪙á�-á™á®°-᮹᱀-᱉á±�-á±™ê˜ > -꘩ê£�-꣙꤀-꤉ê§�-꧙꧰-ê§¹ê©�-꩙꯰-꯹ï¼�-ï¼™\-]/: > Range out of order in character class > > at new RegExp (<anonymous>) > > at Object.r (Autolinker.js:1384) > > at Object.<anonymous> (swagger-ui-bundle.js:133) > > at n (bootstrap:19) > > at Object.<anonymous> (linkify.js:11) > > at n (bootstrap:19) > > at Object.<anonymous> (parser_core.js:22) > > at n (bootstrap:19) > > at Object.<anonymous> (index.js:9) > > at n (bootstrap:19) > > (index):1 Unchecked runtime.lastError: Could not establish connection. > Receiving end does not exist. > > (index):61 Uncaught ReferenceError: SwaggerUIBundle is not defined > > at window.onload ((index):61) > > > > Mapping for Swagger is working for > me[protocol]://[host]:[port]/syncope/swagger/ > > But Swagger’s functionality doesn’t work. > I’m still trying to figure out where is an issue. > > > > Any ideas why this happens? Haven’t you faced with such an error? > > Kind Regards, > Dmitriy Brashevets > > > > *From:* Andrea Patricelli <andreapatrice...@apache.org> > <mailto:andreapatrice...@apache.org> > *Sent:* Thursday, June 25, 2020 12:33 PM > *To:* user@syncope.apache.org <mailto:user@syncope.apache.org> > *Subject:* Re: Fwd: How to generate swagger documentation > > > > Sorry, my bad. > The correct swagger url is > > [protocol]://[host]:[port]/syncope/swagger/ > > Best regards, > Andrea > > Il 25/06/20 11:30, Andrea Patricelli ha scritto: > > Hi Anmol > > Il 24/06/20 18:22, Anmol Sharma ha scritto: > > Hi, > > > > I'm a new user exploring the Maven project workflow for Apache > Syncope. I tried to use the `syncope-ext-swagger-ui` to generate the swagger > documentation. > > > > When I run mvn clean package in the core module, I do not see > swagger-ui docs or config generated. I also ran the build with the `all` > profile but it did not notice any difference. > > > > I'm wondering if you could point me to some documentation on how > to enable / generate swagger docs for a standalone deployment of the core > module? > > Her you can find some docs about building Syncope in general [1]. To > enable the swagger extension please follow [2], "Enable the Swagger > extension" section. You can find swagger docs available at > [protocol]://[host]:[port]/syncope-swagger/ > > > > > Thanks > > anmol > > HTH, > Andrea > > [1] https://syncope.apache.org/building > > [2] > https://syncope.apache.org/docs/2.1/reference-guide.html#customization-core > -- Francesco Chicchiriccò Tirasa - Open Source Excellence http://www.tirasa.net/ Member at The Apache Software Foundation Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail http://home.apache.org/~ilgrosso/