https://github.com/cnily03/social-api
Offers API about some websites and with serveral useful utils.
https://github.com/cnily03/social-api
api bilibili-api pinyin-api social-api
Last synced: about 1 year ago
JSON representation
Offers API about some websites and with serveral useful utils.
- Host: GitHub
- URL: https://github.com/cnily03/social-api
- Owner: Cnily03
- License: mit
- Created: 2021-12-19T05:35:43.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2021-12-25T10:25:35.000Z (over 4 years ago)
- Last Synced: 2025-02-11T17:17:05.241Z (over 1 year ago)
- Topics: api, bilibili-api, pinyin-api, social-api
- Language: JavaScript
- Homepage: https://social-api.cnily.top
- Size: 445 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Social API
该 API Docs 集成了众多实用的 API,以及一些流行网站的公开信息调用接口。
## API 文档
API Docs: [cnily.top/social-api](https://cnily.top/social-api)
## 开发指南
位于 `routes/`目录下的 `api.json` 的写法遵守:
- JSON 的树父节点与子节点的值构成 routes 路径。
- JSON KEY 值不能包含斜杠 `/`.
如
``` json
{
"util": {
"extension": {
"index2": "filename"
},
"index1": "test"
}
}
```
`server.js` 将默认解析路由为
``` test
./routes/util/extension/filename(.js)
./routes/util/test(.js)
```