Premier-League-Stadium-Crimes-API

时间:2021-03-29 01:36:12
【文件属性】:
文件名称:Premier-League-Stadium-Crimes-API
文件大小:11KB
文件格式:ZIP
更新时间:2021-03-29 01:36:12
JavaScript 英超联赛犯罪API 设置 运行npm install 在api/football-data.js AUTH_TOKEN值设置为您自己的令牌 运行服务器 node index.js 用法 所有API方法都是GET请求,因此您可以通过浏览到localhost:3000来在浏览器中使用API 请求示例: 请求给定月份和年份在英超联赛体育场犯下的所有罪行: http://localhost:3000/crimes?year=2021&month=1 索取有关区域的更多信息 http://localhost:3000/area?postcode=N51BU 请求有关特定团队的更多信息 http://localhost:3000/team?teamId=63 索取有关特定犯罪的更多信息 http://localhost:3000/crime?crimeId=4d83433f3117b3a
【文件预览】:
Premier-League-Stadium-Crimes-API-main
----index.js(2KB)
----package.json(208B)
----routes()
--------team-handler.js(135B)
--------area-handler.js(143B)
--------crimes-handler.js(1KB)
--------crime-handler.js(131B)
----api()
--------postcodes.js(258B)
--------football-data.js(827B)
--------police.js(1KB)
----package-lock.json(32KB)
----.gitignore(12B)
----README.md(921B)

网友评论