• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

github-modules/github-api-endpoints: A list of all the paths supported by the Gi ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

github-modules/github-api-endpoints

开源软件地址:

https://github.com/github-modules/github-api-endpoints

开源编程语言:

JavaScript 100.0%

开源软件介绍:

github-api-endpoints

A list of all the paths supported by the GitHub v3 API

This module is compiled by scraping developer.github.com/v3 and collecting all the <code> snippets that start with HTTP verbs.

Installation

npm install github-api-endpoints --save

Usage

You 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

Endpoints

See endpoints.json

Paths

You 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

Tests

npm install
npm test

Dependencies

None

Dev Dependencies

  • chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
  • cheerio: Tiny, fast, and elegant implementation of core jQuery designed specifically for the server
  • got: Simplified HTTP requests
  • http-verbs: Export http verbs as constants.
  • lodash: Lodash modular utilities.
  • mocha: simple, flexible, fun test framework
  • standard: JavaScript Standard Style
  • standard-markdown: Test your Markdown files for Standard JavaScript Style™

License

MIT




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
mubaris/curiosity: Find Amazing Github Projects发布时间:2022-06-11
下一篇:
TV Maze API Search发布时间:2022-06-11
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap