Files
api_test/backends/potter-api/README.md
T
kankys d0cdabbf11 refactor: restructure to monorepo with backends and apiTest
- Move web/backend to backends/potter-api
- Move web/frontend to backends/potter-api/frontend
- Add root package.json with npm workspaces
- Update README.md with monorepo navigation
- Update .github/workflows/api-tests.yml for dynamic test discovery
- Update bruno_test_scenario.md paths
- Fix .gitignore to allow JSON data files
- Add three new AI tests in apiTest/PotterAPI/AI/

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-09-15 21:08:39 +02:00

783 B

PotterAPI

Prerequisites

  1. Installed NodeJS

Installation

  1. Open terminal and run following commands
git clone https://github.com/skarbala/PotterAPI.git
cd PotterAPI
npm install
  1. Run the API using
npm start

✅ You should see following message

Harry Potter App listening on port 3000!

Documentation

Base url

All routes needs to be send to base url http://localhost:3000

Response type

Default response format is application/json

Spells service

Authentication

No authentication needed

Available endpoints

GET /spells returns list spells

GET /spells/{id} returns specific spell.

DELETE /spells/{id} deletes spell

POST /spells adds new spell