Harry Potter-themed Mock API (unofficial)

Kurgusal bir büyücülük okulundan evler, öğrenciler ve büyüler. CRUD, Bearer kimlik doğrulaması, eve göre iç içe filtreleme, sayfalama ve iyimser eşzamanlılık konularında pratik yapın.

Temel URL: https://funapi.dev/api/wizarding/v1 · 10 uç nokta · OpenAPI 3.1 belgesi ve Postman koleksiyonu mevcut. Yeni misiniz? Önce şunu okuyun: başlangıç rehberi.

houses

dört ev, dört unsur

students

sıralanmış, patronus ve hepsi

spells

tılsımlar, lanetler ve affedilemez bir şey

Harry Potter API'si, bir sihir okulunu modelliyor: puan toplamlarına sahip dört ev, bu evlere yerleştirilmiş öğrenciler ve bir büyü kitabı. Puanlar evler arasında hareket eder, bu da onu okuma-değiştirme-yazma döngüsünü uygulamak ve iki istemcinin aynı anda denediğinde neler olduğunu görmek için doğal bir uyum haline getirir.

Burada neler deneyebilirsin

Örnek istek ve yanıt

GET https://funapi.dev/api/wizarding/v1/houses — Tüm evleri listele. Token yok, kayıt yok:

curl -i https://funapi.dev/api/wizarding/v1/houses

Yanıt: 200 OK

{
  "total": 4,
  "data": [
    {
      "id": 1,
      "name": "Gryffindor",
      "founder": "Godric Gryffindor",
      "traits": [
        "courage",
        "bravery",
        "daring"
      ],
      "element": "fire",
      "points": 472
    },
    {
      "id": 2,
      "name": "Slytherin",
      "founder": "Salazar Slytherin",
      "traits": [
        "ambition",
        "cunning",
        "resourcefulness"
      ],
      "element": "water",
      "points": 452
    },
    {
      "id": 3,
      "name": "Hufflepuff",
      "founder": "Helga Hufflepuff",
      "traits": [
        "patience",
        "loyalty",
        "fairness"
      ],
      "element": "earth",
      "points": 428
    },
    {
      "id": 4,
      "name": "Ravenclaw",
      "founder": "Rowena Ravenclaw",
      "traits": [
        "wisdom",
        "wit",
        "creativity"
      ],
      "element": "air",
      "points": 461
    }
  ]
}

Bu endpoint'i aç ve çalıştır

55 mock REST API’nin tamamı

Bu yanıtı başka yerde kullan

Unofficial and fan-made. The Harry Potter API is a practice API that borrows a theme; it is not affiliated with, sponsored or endorsed by the owners of the names it references, which belong to them. Every record it returns is test data for exercising HTTP behaviour, not an authoritative source on the subject.

Son güncelleme