We have an API documentation generated by swagger running here and I asked myself how to let swagger generate an additional curl command line example for the current endpoint/method. Is that possible without hacking into skala?
cURL, which stands for client URL, is a command line tool that developers use to transfer data to and from a server.
Generate Curl from PostmanClick on the Code button. A dialog “GENERATE CODE SNIPPET” will appear. Select “cURL” from the dropdown. You can copy the command using Copy to Clipboard button.
curl is a command-line tool to transfer data to or from a server, using any of the supported protocols (HTTP, FTP, IMAP, POP3, SCP, SFTP, SMTP, TFTP, TELNET, LDAP, or FILE). curl is powered by Libcurl. This tool is preferred for automation since it is designed to work without user interaction.
simply update your swagger-ui bundle and curl commands section will show up by default
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With