Houses, students and spells from a fictional wizarding school. Practice CRUD, Bearer auth, nested filtering by house, pagination and optimistic concurrency.
Base URL: https://funapi.dev/api/wizarding/v1 · 10 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.
four houses, four elements
GET /wizarding/v1/houses — List all housesGET /wizarding/v1/houses/{id} — Get one housePOST /wizarding/v1/sorting-hat — The Sorting Hat assigns you a house (stateless, random)sorted, patronus and all
GET /wizarding/v1/students — List students (paginated, filter by house)GET /wizarding/v1/students/{id} — Get one studentPOST /wizarding/v1/students — Enroll a student (requires Bearer auth)PUT /wizarding/v1/students/{id} — Update a student (requires Bearer auth)DELETE /wizarding/v1/students/{id} — Expel a student (requires Bearer auth)charms, jinxes, and one unforgivable
GET /wizarding/v1/spells — List spells, filter by typeGET /wizarding/v1/spells/random — A random spell