This documentation will help you get familiar with the resources of the Doctor Who API and show you how to make different queries, so that you can get the most out of it.
To use the project, clone the project by typing the following command:
git clone https://github.com/aliana-kazmi/Doctor-Who-API.git
Change the directory to app and run the command
python manage.py runserver
Doctors Endpoint:
- Purpose: Retrieve information about all doctors featured in Doctor Who.
- Usage:
- /api/characters/doctors
- /api/characters/doctors/{doctor-name}
- Response Format: JSON
- Example: GET /api/characters/doctors returns a list of all doctors with their respective details.
Companions Endpoint:
- Purpose: Access information about all companions featured in Doctor Who.
- Usage:
- /api/characters/companions
- /api/characters/companions/{companion-name}
- Response Format: JSON
- Example: GET /api/characters/companions provides a list of all companions and their relevant details.
Villains Endpoint:
- Purpose: Access information about all villains featured in Doctor Who.
- Usage:
- /api/characters/villains
- /api/characters/villains/{villain-name}
- Response Format: JSON
- Example: GET /api/characters/villains provides a list of all villains and their relevant details.
Alien Races Endpoint:
- Purpose: Retrieve information about all alien races associated with the character Doctor Who.
- Usage:
- api/characters/alien-races
- api/characters/alien-races/{alien-race-name}
- Response Format: JSON
- Example: GET api/characters/alien-races/ provides a list of alien races featured in the Doctor Who series
Gadgets Endpoint:
- Purpose: Retrieve information about all gadgets used by the Doctor in the series.
- Usage:
- /api/gadgets
- /api/gadgets/{gadget-name}
- Response Format: JSON
- Example: GET /api/gadgets provides a comprehensive list of gadgets featured in Doctor Who.
Serials Endpoint:
- Purpose: Access details about all serials (episodes) of the Doctor Who series.
- Usage:
- /api/serials
- /api/serials/{serial-number}
- Response Format: JSON
- Example: GET /api/serials returns a list of all serials along with relevant information.
Episodes Endpoint:
- Purpose: Access details about all episodes of the Doctor Who series.
- Usage:
- /api/episodes
- /api/episodes/{episodes-name}
- Response Format: JSON
- Example: GET /api/writers returns details about writers who contributed to the show.