postman 與 swagger 是 API 開發工具
postman 是什麼
What is Postman?
Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
swagger 是什麼
Swagger is a powerful yet easy-to-use suite of API developer tools for teams and individuals, enabling development across the entire API lifecycle, from design and documentation, to test and deployment.
以前串 API 就要參考 API 文件,看著一堆密密麻麻的說明,有時後還會串錯,就是搞不懂
現在 postman 就像是你在用 curl -X POST 或 GET 一樣的工具 (如果你習慣 curl 的話)
它官網上有 hub 可以 explore,就像是 github 這樣
有些廠商的 API 也會丟到 postman 或 swagger
它沒有像 API 文件一堆文字,是讓你能直接實際測試這家 API 怎麼用
也可以自訂參數上去
清清楚楚看到連結是什麼 (現在叫 endpoint),底下的參數是做什麼的
這條串的是要新增還是刪除、修改
那些內容也可以直接匯出 ,下載下來,給別人用再自行匯入就好
留言