Skip to content

paigeegorry/dragon-age-api

Repository files navigation

Dragon Age API

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

Overview

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.

Technologies used

Node.js, MongoDB, Express, Jest, SuperTest, nodemon, dotenv, Mongoose, morgan, SuperAgent, node-html-parser

Routes

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

Getting Started

I welcome any and all contributions! Feel free to submit a Pull Request with your changes to make this a better API for everyone!

  1. Clone and download GitHub repo

  2. Install dependencies:
    npm i

  3. 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)

License

Standard MIT

About

Open-source API that provides character information from Dragon Age.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors