From 9117044f88d5e6842589665cf77b779934e40aae Mon Sep 17 00:00:00 2001 From: jzitnik-dev Date: Wed, 11 Feb 2026 10:35:46 +0100 Subject: [PATCH] chore: Some website url changes --- web/content/posts/api/_index.md | 5 +++++ web/content/posts/{api-usage => api/usage}/index.md | 8 +++++--- web/content/posts/{api-usage-v1 => api/v1}/index.md | 0 web/content/posts/{api-usage-v2 => api/v2}/index.md | 0 web/hugo.yaml | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 web/content/posts/api/_index.md rename web/content/posts/{api-usage => api/usage}/index.md (91%) rename web/content/posts/{api-usage-v1 => api/v1}/index.md (100%) rename web/content/posts/{api-usage-v2 => api/v2}/index.md (100%) diff --git a/web/content/posts/api/_index.md b/web/content/posts/api/_index.md new file mode 100644 index 0000000..beda9de --- /dev/null +++ b/web/content/posts/api/_index.md @@ -0,0 +1,5 @@ +--- +title: API +summary: Jak využívat API +description: Jak využívat API +--- diff --git a/web/content/posts/api-usage/index.md b/web/content/posts/api/usage/index.md similarity index 91% rename from web/content/posts/api-usage/index.md rename to web/content/posts/api/usage/index.md index 0f443c6..634662a 100644 --- a/web/content/posts/api-usage/index.md +++ b/web/content/posts/api/usage/index.md @@ -18,19 +18,21 @@ Kořenový endpoint (`/`) je **zastaralý (deprecated)**. Ačkoliv v současnosti vrací stejná data jako `/versioned/v1`, jeho podpora může být v budoucnu ukončena. **Prosím, nepoužívejte tento endpoint pro nové projekty a existující projekty aktualizujte na verzované endpointy.** +**Tento endpoint vrací V1 pouze pokud se nejedná o UserAgent prohlížeče. Pokud se detekuje prohlížeč, vrátí se webová stránka.** + --- ## Dostupné Verze API API je verzované, aby byla zajištěna zpětná kompatibilita. Zde je seznam dostupných verzí: -- ### [Verze 2 (v2)](../api-usage-v2) +- ### [Verze 2 (v2)](../v2) **Status:** Stabilní - **Endpoint:** `/versioned/v1` + **Endpoint:** `/versioned/v2` Toto je aktuální a doporučená verze API. Klikněte na odkaz pro zobrazení kompletní dokumentace pro v2. -- ### [Verze 1 (v1)](../api-usage-v1) +- ### [Verze 1 (v1)](../v1) **Status:** Stabilní **Endpoint:** `/versioned/v1` diff --git a/web/content/posts/api-usage-v1/index.md b/web/content/posts/api/v1/index.md similarity index 100% rename from web/content/posts/api-usage-v1/index.md rename to web/content/posts/api/v1/index.md diff --git a/web/content/posts/api-usage-v2/index.md b/web/content/posts/api/v2/index.md similarity index 100% rename from web/content/posts/api-usage-v2/index.md rename to web/content/posts/api/v2/index.md diff --git a/web/hugo.yaml b/web/hugo.yaml index cfcf113..b4186a6 100644 --- a/web/hugo.yaml +++ b/web/hugo.yaml @@ -59,7 +59,7 @@ params: Content: > Webová stránka SPŠE Ječná Rozvrh API pro získávání mimořádného rozvrhu v rozumném formátu. - - **Toto API je NEOFICIÁLNǏ a nemá nic společného s oficiálním softwarem školy**. + - **Toto API je NEOFICIÁLNÍ a nemá nic společného s oficiálním softwarem školy**. markup: