Authors: Paige Gorry
dragon-age-api.herokuapp.com
dragon-age-api.fly.dev
DEPRECATION: heroku app url is deprecated as of 1/15/23, please use the new fly.io url above for all requests
This is an open-source API that provides character information from the Dragon Age series. This information is publicly sourced; I do not claim to own.
Node.js, MongoDB, Express, Jest, SuperTest, nodemon, dotenv, Mongoose, morgan, SuperAgent, node-html-parser
All routes are GET routes
- GET /api/v1/characters - get all characters (default 50 per page / 792 total characters)
- GET /api/v1/characters/:id - get character by id
- GET /api/v1/characters?page=${num} - get all characters / pagination
- GET /api/v1/characters?perPage=${num} - change number of characters you get per page
- GET /api/v1/characters?appearances=${value} - get characters by appearance / which game/comic they appeared in
- GET /api/v1/characters?quests=${value} - get characters by quest
- GET /api/v1/characters/random - get a random character
I welcome any and all contributions! Feel free to submit a Pull Request with your changes to make this a better API for everyone!
-
Clone and download GitHub repo
-
Install dependencies:
npm i -
Run scripts:
npm run lint
npm run pretest
npm run start(start node server)
npm run start:watch(start nodemon server)
npm run seed(seed database)
npm run drop(drop MongoDB)
npm run db-load-all(drop db and load seed data from scratch)
Standard MIT