From a3e18f1eef424c9feb00c346a5dd44c8619356e0 Mon Sep 17 00:00:00 2001 From: npldevfr Date: Tue, 30 Jan 2024 23:30:30 +0100 Subject: [PATCH] feat: doc --- docs/.vitepress/config.mts | 12 +- docs/api/endpoints.md | 85 +++++++++++++ docs/api/wikis.md | 219 ++++++++++++++++++++++++++++++++++ docs/query-builder/methods.md | 18 +-- 4 files changed, 321 insertions(+), 13 deletions(-) create mode 100644 docs/api/endpoints.md create mode 100644 docs/api/wikis.md diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index e96c6bb..4e23cb8 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -28,15 +28,19 @@ export default defineConfig({ {text: 'Getting Started', link: '/guide/getting-started'}, ] }, - { - text: 'Endpoints (Coming Soon)', - items: [] - }, + { text: 'Query Builder', items: [ {text: 'Methods', link: '/query-builder/methods'}, ] + }, + { + text: 'API', + items: [ + {text: 'Endpoints', link: '/api/endpoints'}, + {text: 'Wiki', link: '/api/wikis'}, + ] } ], diff --git a/docs/api/endpoints.md b/docs/api/endpoints.md new file mode 100644 index 0000000..2cefc32 --- /dev/null +++ b/docs/api/endpoints.md @@ -0,0 +1,85 @@ +# Endpoints + +The following PHP code defines an `Endpoint` class that encapsulates various constants representing different endpoints related to specific aspects of esports data. Similar to the `Wiki` class for Liquipedia API wikis, the `Endpoint` class provides a convenient way to access and reference the available endpoints. + +## Usage + +```php +