İstek başarılı oldu ve yanıt, istediğiniz temsili içeriyor. GET isteği için bu, isteğin gövdesidir; PUT veya POST isteği için ise işlemin sonucudur.
Tanımlandığı yer RFC 9110 §15.3.1 — 200 Tamam · MDN referansı
Başarılı bir GET'e ve sonucu doğrudan döndürülen bir PUT ya da POST'a verilen varsayılan yanıt. En sık göreceğiniz, en az incelediğiniz koddur.
Çoğu test paketinin yaptığından daha dikkatli doğrulanmayı hak eder: yanlış gövdeli, bayat temsilli ya da eksik başlıklı bir 200 yine de 200'dür ve yalnızca durum koduna bakan bir doğrulama onu geçirir.
Durum satırında durmayın. Gövdeyi bir şemaya göre doğrulayın, içerik türünün istediğiniz tür olduğunu kontrol edin ve güvendiğiniz önbellek başlıklarının bulunduğundan emin olun. Gövdesinde hata nesnesi taşıyan bir 200 gerçek ve yaygın bir API tasarımıdır; yalnızca durum koduna bakan bir doğrulama onu fark etmeden geçer.
Bu oyun alanında 408 uç nokta 200 ile yanıt veriyor. Hepsi ücretsizdir, kayıt gerektirmez ve tarayıcıdan ya da curl ile çağrılabilir.
GET https://funapi.dev/api/friends/v1/characters — List all characters (paginated) — v1, deprecated (Friends API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/friends/v1/characters/{id} — Get one character (Friends API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/friends/v1/characters/{id} — Update a character (Friends API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/friends/v1/characters/bulk-delete — Bulk-delete characters by id (partial success supported) (Friends API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/friends/v1/episodes — List episodes, filter by season (Friends API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/friends/v1/quotes/random — A random quote (Friends API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/friends/v1/characters/{id}/quotes — Get a character's quotes (nested resource) (Friends API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/friends/v2/characters — List characters — v2 (breaking change: job → occupation, re-wrapped) (Friends API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/friends/version — Discover supported API versions (Friends API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/friends/characters — Content-negotiated version via Accept header (406 if unsupported) (Friends API) Bu uç noktayı aç ve çalıştırPOST https://funapi.dev/api/friends/v1/graphql — Run a query or mutation over character data (Friends API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/superheroes/v1/heroes — List heroes (paginated, filterable) (Superhero API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/superheroes/v1/heroes/{id} — Get one hero (Superhero API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/superheroes/v1/heroes/{id}/nemesis — Get a hero's nemesis (nested resource) (Superhero API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/pizza/v1/menu — Get the menu (Pizza Orders API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/pizza/v1/orders/{id} — Track an order (Pizza Orders API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/pizza/v1/orders/{id}/status — Update order status (Pizza Orders API) Bu uç noktayı aç ve çalıştırPATCH https://funapi.dev/api/pizza/v1/orders/{id} — Partially update an order (address or size) (Pizza Orders API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/pizza/v1/oven/preheat — Preheat the oven — always takes ~3s (Pizza Orders API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/coffee/v1/drinks — List drinks, filter by type (Coffee Shop API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/coffee/v1/drinks/{id} — Get one drink (Coffee Shop API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/coffee/v1/rush-hour — Rush hour special — max 3 requests per 10s (Coffee Shop API) Bu uç noktayı aç ve çalıştırPUT https://funapi.dev/api/coffee/v1/orders/{id}/ready — Mark an order ready (409 if already ready) (Coffee Shop API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/football/v1/teams — List teams (paginated) (Football API) Bu uç noktayı aç ve çalıştırGET https://funapi.dev/api/football/v1/teams/{id} — Get one team (Football API) Bu uç noktayı aç ve çalıştır…ve katalog genelinde 383 uç nokta daha.
Tüm HTTP durum kodları · 55 mock REST API’nin tamamı · Başlangıç rehberi
Son güncelleme