API Documentation - Justin-Stockton/PokeHunt GitHub Wiki

Pokemon

  • GET /api/pokemon

    • This route will get all of the Pokemon from the database.
  • POST /api/pokemon

    • This route will add a new Pokemon to the database.
  • PUT /api/pokemon/:pokemonId

    • This route will update the information of an already existing Pokemon.
  • POST /api/pokemon/:pokemonId

    • This route will delete a Pokemon from the database.

Reviews

  • GET /api/review/:pokemonId

    • This route will fetch all the reviews for a pokemon.
  • POST /api/review/:pokemonId

    • This route will create a new review tied to a pokemon.
  • POST /api/review/:reviewId

    • This route will delete a specific review.

Upvotes

  • GET /api/upvote/

    • This route will fetch all the upvotes.
  • POST /api/upvote/

    • This route will post a new upvote to the upvote table.
  • POST /api/upvote/delete

    • This route will delete an upvote from the upvote table.

Users

  • GET /api/users/

    • This route will fetch all the users.
  • GET /users/:userId

    • This route will fetch the specific user.