Skip to content

Instantly share code, notes, and snippets.

@thomasJang
Created December 29, 2016 11:17
Show Gist options
  • Save thomasJang/10185db5046914355bb6b3cc7299ed3a to your computer and use it in GitHub Desktop.
Save thomasJang/10185db5046914355bb6b3cc7299ed3a to your computer and use it in GitHub Desktop.
스웨거API테이블로뽑아내는.js
var po = [];
po.push("<table>");
$(".operations .heading").each(function(){
po.push("<tr>");
po.push("<td>" + $(this).find(".http_method").text().trim() + "</td>");
po.push("<td>" + $(this).find(".path").text().trim() + "</td>");
po.push("</tr>");
});
po.push("</table>");
console.log(po.join(''));
@thomasJang
Copy link
Author

크롬브라우저에서 스웨거 API를 열고 콘솔에 위의 코드를 실행

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment