Created
December 29, 2016 11:17
-
-
Save thomasJang/10185db5046914355bb6b3cc7299ed3a to your computer and use it in GitHub Desktop.
스웨거API테이블로뽑아내는.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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('')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
크롬브라우저에서 스웨거 API를 열고 콘솔에 위의 코드를 실행