Skip to content

KalinRamsey/19.6_EncycloBestiary-API

Repository files navigation

Encyclo•Bestiary App

Tech Used:

  • ReactJS
  • NodeJS
  • CSS

Summary:

  • The landing page displays an informational overview about how to use the application.

Landing Page screenshot

  • User is able to create a new account by submitting a unique username, along with an email address and validated password.

Sign up screenshot Log in screenshot

  • Once logged in, user can then freely access their account to create, view, and delete their personal collection of Bestiaries and respective data.

Profile page screenshot Add Data screenshot View Bestiary screenshot

API Documentation:

Users

  • (/)
    • GET: Returns a list of all current users registered
    • POST: Create new user with params { email, username, password }
  • (/:userId)
    • GET: Return a single user
    • PATCH: Edit { email, password, username, about_me } of a single user, given a specific ID and valid authentication
    • DELETE: Remove a user from the database given a specific user ID and valid authentication
  • (/:userId/bestiaries)
    • GET: Return all bestiaries assigned to a user, given a specific user ID
    • POST: Add a new bestiary to a user's collection with params { bestiary_name, bestiary_description }, given a specific user ID and valid authentication
  • (/:userId/data)
    • GET: Return all data across all bestiaries created by user
    • POST: Add a new data with params { bestiary_id, data_name, data_description }, given a specific user ID and valid authentication

Bestiaries

  • (/)
    • GET: Returns all bestiaries submitted to the app
    • POST: Add a bestiary to the database with params { bestiary_name, bestiary_description }, given valid authentication
  • (/:bestiaryId)
    • GET: Return a specific bestiary, given a specific bestiary ID
    • PATCH: Edit a specific bestiary with params { bestiary_name, bestiary_description }, given a specific bestiary ID and valid authentication
    • DELETE: Remove a specific bestiary from the database, given a specific bestiary ID and valid authentication
  • (/:bestiaryId/data)
    • GET: Return all data stored in a particular bestiary, given a specific bestiary ID
    • POST: Add a new data set to a bestiary with params { user_id, data_name, data_description }, given a specific bestiary ID and valid authentication

Data

  • (/)
    • GET: Return all data in the database
    • POST: Add new data to the database with params { bestiary_id, data_name, data_description }, given valid authentication
  • (/:dataId)
    • GET: Returns a particular set of data, given a specific data ID
    • PATCH: Edit a particular set of data with params { user_id, bestiary_id, data_name, data_description }, given a specific data ID and valid authentication
    • DELETE: Removes a particular set of data from the database, given valid authentication

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published