【问题标题】:How can I list my github repository and create a new github repository using postman如何列出我的 github 存储库并使用 postman 创建一个新的 github 存储库
【发布时间】:2019-11-09 03:41:42
【问题描述】:

我想使用 postman 测试一些端点 1.列出我所有的存储库 2. 创建仓库 2.删除存储库 和 4. 重命名存储库

【问题讨论】:

标签: javascript github postman web-api-testing


【解决方案1】:
  1. 列出所有存储库 - GET Request on below URL

https://api.github.com/users/<user-name>/repos

  1. 用于创建存储库 - POST request on below URL

https://api.github.com/user/repos

  1. 用于删除存储库 - DELETE request on below URL

https://api.github.com/repos/<:owner>/<:repo>

有关所需参数的详细信息,请阅读 Github API V3 官方文档 - https://developer.github.com/v3/

【讨论】:

    猜你喜欢
    • 2012-04-01
    • 2017-08-09
    • 1970-01-01
    • 2014-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-29
    相关资源
    最近更新 更多