Application Programming Interface (API) 即应用程序接口。顾名思义,它是开发者访问应用程序的接口。 例如,你可以通过以下命令查询 GitHub 上特定代码仓库的元数据信息: 1 curl https://api.github.com/repos/apache/pulsar GitHub 会返回以下信息: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 { "id":62117812, "name":"pulsar", "full_name":"apache/pulsar", "private":false, "size":185304, "stargazers_count":12577, "watchers_count":12577, "language":"J...