在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:github-modules/github-api-endpoints开源软件地址:https://github.com/github-modules/github-api-endpoints开源编程语言:JavaScript 100.0%开源软件介绍:github-api-endpoints
This module is compiled by scraping
developer.github.com/v3
and collecting all the Installationnpm install github-api-endpoints --save UsageYou can use it programatically: const endpoints = require('github-api-enpoints')
endpoints.length
// 485
endpoints.filter(e => e.includes('GET /gists'))
// [
// 'GET /gists',
// 'GET /gists/:gist_id/comments',
// 'GET /gists/:gist_id/comments/:id',
// 'GET /gists/:id',
// 'GET /gists/:id/:sha',
// 'GET /gists/:id/commits',
// 'GET /gists/:id/forks',
// 'GET /gists/:id/star',
// 'GET /gists/public',
// 'GET /gists/starred'
// ] Or you can install it globally and use it on the command line: npm i -g github-api-endpoints
github-api-endpoints | grep branches | grep DELETE
# DELETE /repos/:owner/:repo/branches/:branch/protection
# DELETE /repos/:owner/:repo/branches/:branch/protection/enforce_admins
# DELETE /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews
# DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks
# DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts
# DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions
# DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/teams
# DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/users EndpointsSee endpoints.json PathsYou can also get a list of URL paths: const paths = require('github-api-endpoints/paths.json') For the raw list of paths, see paths.json Testsnpm install
npm test DependenciesNone Dev Dependencies
LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论