<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof">
thank you that is the solution</div>
<div id="appendonsend"></div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);" class="elementToProof">
ngcp-api-generate-doc --format swagger-json --file=swagger.json</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>Von:</b>&nbsp;Vincent Dubois &lt;vdubois@b2b2c.com&gt;<br>
<b>Gesendet:</b>&nbsp;Dienstag, 19. August 2025 15:01<br>
<b>Bis:</b>&nbsp;Christian Treudler &lt;treudler@flow7.de&gt;; spce-user@lists.sipwise.com &lt;spce-user@lists.sipwise.com&gt;<br>
<b>Betreff:</b>&nbsp;RE: Howto export API swagger definition file </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">Try using the command line, I looked for swagger using grep and found this</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">bin/ngcp-api-generate-doc:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ($doc_format eq 'swagger-yml' ? ('swagger' =&gt; 'yml') : ()),</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">bin/ngcp-api-generate-doc:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ($doc_format eq 'swagger-json' ? ('swagger' =&gt; 'json') : ()),</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">so there is a command to generate it:</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">Usage:</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;&nbsp;&nbsp;&nbsp; ngcp-api-generate-doc [options]</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">Options:</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;&nbsp;&nbsp; --help</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Print a brief help message and exits.</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;&nbsp;&nbsp; --format=format</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Specify the apidoc format (json/swagger-json/swagger-yml).</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;&nbsp;&nbsp; --file=filename</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Specify a file to write the apidoc output to.</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;&nbsp;&nbsp; --log-level</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Verbosity of printed messages while processing (debug, info, warn,</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error).</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;</span></p>
<p style="line-height: 10.3pt; margin: 0px 0px 0px 5.15pt; font-family: Aptos, sans-serif; font-size: 12pt;">
<span style="font-family: Arial, sans-serif; font-size: 9pt;"><b>Vincent Dubois</b></span><span style="letter-spacing: -0.1pt; font-family: Arial, sans-serif; font-size: 9pt; color: rgb(0, 90, 138);"><b>
</b></span><span style="font-family: Arial, sans-serif; font-size: 9pt;">|</span><span style="letter-spacing: -0.25pt; font-family: Arial, sans-serif; font-size: 9pt;">
</span><span style="font-family: Arial, sans-serif; font-size: 9pt; color: black; background-color: white;">Analyste programmeur</span></p>
<p style="margin: 0px 0px 0px 5.15pt; font-family: Aptos, sans-serif; font-size: 12pt;">
<span style="letter-spacing: -0.1pt; font-family: Arial, sans-serif; font-size: 9pt;"><b>B2B2C</b></span></p>
<p style="line-height: 115%; margin: 0px 60.2pt 0px 5.15pt; font-family: Aptos, sans-serif; font-size: 12pt;">
<span style="font-family: Arial, sans-serif; font-size: 9pt; line-height: 115%;">514-908-5420</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;">&nbsp;</span></p>
<div style="padding-top: 3pt; border-top: 1pt solid rgb(225, 225, 225);">
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-family: Calibri, sans-serif; font-size: 11pt;"><b>From:</b>&nbsp;Christian Treudler via Spce-user &lt;spce-user@lists.sipwise.com&gt;<br>
<b>Sent:</b>&nbsp;August 19, 2025 6:51 AM<br>
<b>To:</b>&nbsp;spce-user@lists.sipwise.com<br>
<b>Subject:</b>&nbsp;[Spce-user] Howto export API swagger definition file</span></p>
</div>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;">&nbsp;</p>
<div style="padding: 2pt; border-width: 1pt; border-style: solid; border-color: rgb(156, 101, 0);">
<p style="line-height: 12pt; background-color: rgb(255, 235, 156); margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;">
<span style="font-family: Calibri, sans-serif; font-size: 10pt; color: rgb(156, 101, 0);">CAUTION :</span><span style="font-family: Calibri, sans-serif; font-size: 10pt; color: black;">&nbsp;External Mail. Do not click on links or open attachments you do not trust.<br>
</span><span style="font-family: Calibri, sans-serif; font-size: 10pt; color: rgb(156, 101, 0);">ATTENTION :
</span><span style="font-family: Calibri, sans-serif; font-size: 10pt; color: black;">Courriel externe. Ne cliquez pas sur des liens et n'ouvrez pas de pices jointes auxquels vous ne faites pas confiance.</span></p>
</div>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;">&nbsp;</p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;">Hello,</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;">&nbsp;</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;">Can someone please explain to me how I can export the swagger definition from the API?</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;">&nbsp;</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;">The URL</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;"><a style="margin-top: 0px; margin-bottom: 0px;" data-auth="NotApplicable" class="OWAAutoLink" id="OWA749c8d3d-de40-eb16-85da-fe96d4a3962c" href="https://IP:1443/api/v2/swagger.json">https://IP:1443/api/v2/swagger.json</a></span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;"><a style="margin-top: 0px; margin-bottom: 0px;" data-auth="NotApplicable" class="OWAAutoLink" id="OWA58b3349d-f5e1-2fd7-625c-f38c248cadda" href="https://IP:1443/api/v2/swagger.yaml">https://IP:1443/api/v2/swagger.yaml</a></span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;">doesn't work</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;">&nbsp;</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;">&nbsp;</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;">thank you</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;">Christian</span></p>
<p style="margin: 0px; font-family: Aptos, sans-serif; font-size: 12pt;"><span style="font-size: 11pt; color: black;">&nbsp;</span></p>
</body>
</html>