Skip to content

Commit

Permalink
feat(app): update api content
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Oct 16, 2023
1 parent 85ee4dc commit 1ee7d9d
Show file tree
Hide file tree
Showing 5 changed files with 3,435 additions and 903 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
curl "https://garden.onekuma.cn/api/resources?page=1&pageSize=10"
```

You can find more API usage example in [scripts/api.http](./scripts/api.http).
You can find the interactive Open API document [here](https://garden.onekuma.cn/docs/api) and more API usage example in [scripts/api.http](./scripts/api.http).

If you are using JavaScript / TypeScript, you can just use the API wrapper `fetchResources` and `fetchResourceDetail` in package [animegarden](https://www.npmjs.com/package/animegarden).

Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/Swagger/Content.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import SwaggerUI from 'swagger-ui-react';
import 'swagger-ui-react/swagger-ui.css';

import { spec } from './spec';
import spec from './spec.json';

export default function Content() {
return <SwaggerUI spec={spec} />;
Expand Down
Loading

0 comments on commit 1ee7d9d

Please sign in to comment.