mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
* chore(deps): bump the docs group in /website with 6 updates Bumps the docs group in /website with 6 updates: | Package | From | To | | --- | --- | --- | | [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) | `2.4.3` | `3.0.0` | | [@docusaurus/plugin-client-redirects](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-client-redirects) | `2.4.3` | `3.0.0` | | [@docusaurus/plugin-pwa](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-pwa) | `2.4.3` | `3.0.0` | | [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic) | `2.4.3` | `3.0.0` | | [@docusaurus/module-type-aliases](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-module-type-aliases) | `2.4.3` | `3.0.0` | | [@docusaurus/types](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-types) | `2.4.3` | `3.0.0` | Updates `@docusaurus/core` from 2.4.3 to 3.0.0 - [Release notes](https://github.com/facebook/docusaurus/releases) - [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/docusaurus/commits/v3.0.0/packages/docusaurus) Updates `@docusaurus/plugin-client-redirects` from 2.4.3 to 3.0.0 - [Release notes](https://github.com/facebook/docusaurus/releases) - [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/docusaurus/commits/v3.0.0/packages/docusaurus-plugin-client-redirects) Updates `@docusaurus/plugin-pwa` from 2.4.3 to 3.0.0 - [Release notes](https://github.com/facebook/docusaurus/releases) - [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/docusaurus/commits/v3.0.0/packages/docusaurus-plugin-pwa) Updates `@docusaurus/preset-classic` from 2.4.3 to 3.0.0 - [Release notes](https://github.com/facebook/docusaurus/releases) - [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/docusaurus/commits/v3.0.0/packages/docusaurus-preset-classic) Updates `@docusaurus/module-type-aliases` from 2.4.3 to 3.0.0 - [Release notes](https://github.com/facebook/docusaurus/releases) - [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/docusaurus/commits/v3.0.0/packages/docusaurus-module-type-aliases) Updates `@docusaurus/types` from 2.4.3 to 3.0.0 - [Release notes](https://github.com/facebook/docusaurus/releases) - [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/docusaurus/commits/v3.0.0/packages/docusaurus-types) --- updated-dependencies: - dependency-name: "@docusaurus/core" dependency-type: direct:production update-type: version-update:semver-major dependency-group: docs - dependency-name: "@docusaurus/plugin-client-redirects" dependency-type: direct:production update-type: version-update:semver-major dependency-group: docs - dependency-name: "@docusaurus/plugin-pwa" dependency-type: direct:production update-type: version-update:semver-major dependency-group: docs - dependency-name: "@docusaurus/preset-classic" dependency-type: direct:production update-type: version-update:semver-major dependency-group: docs - dependency-name: "@docusaurus/module-type-aliases" dependency-type: direct:development update-type: version-update:semver-major dependency-group: docs - dependency-name: "@docusaurus/types" dependency-type: direct:development update-type: version-update:semver-major dependency-group: docs ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix dependencies * docs: fix admonition caution is deprecated in v3 caution(v2 yellow) => warning(v3 yellow) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
47 lines
1.1 KiB
Markdown
47 lines
1.1 KiB
Markdown
# API
|
|
|
|
:::warning
|
|
|
|
The API is under active development and is subject to change. All suggestions are welcome!
|
|
|
|
:::
|
|
|
|
RSSHub provides the following APIs:
|
|
|
|
## List of Public Routes
|
|
|
|
:::tip
|
|
|
|
This API **will not** return any routes under `lib/protected_router.js`.
|
|
|
|
:::
|
|
|
|
Eg: [https://rsshub.app/api/routes/github](https://rsshub.app/api/routes/github)
|
|
|
|
Route: `/api/routes/:name?`
|
|
|
|
Parameters:
|
|
|
|
- `name`, route's top level name as in [https://github.com/DIYgod/RSSHub/tree/master/lib/routes](https://github.com/DIYgod/RSSHub/tree/master/lib/routes). Optional, **returns all public routes if not specified**.
|
|
|
|
A successful request returns an HTTP status code `200 OK` with the result in JSON:
|
|
|
|
```js
|
|
{
|
|
"status": "success",
|
|
"data": {
|
|
"github": {
|
|
"routes": [
|
|
"/github/trending/:since/:language?",
|
|
"/github/issue/:user/:repo",
|
|
"/github/user/followers/:user",
|
|
"/github/stars/:user/:repo"
|
|
]
|
|
}
|
|
},
|
|
"message": "request returned 4 routes"
|
|
}
|
|
```
|
|
|
|
If no matching results were found, the server returns only an HTTP status code `204 No Content`.
|