Skip to content

giftn API to make CRUD operations and external API calls. Won Best Finance Hack at HackUMass and First Overall at the MLH Winter Hacklympics.

Notifications You must be signed in to change notification settings

catherinedparnell/giftn-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

giftn Logo

API Reference

This pandemic is stressful enough without holiday shopping! giftn is an all-in-one application allowing users to easily track their gift lists, budgeting, and package deliveries. We want to make planning for COVID-Holidays feel like a breeze.

Services

This API was built to handle CRUD operations to and from Google Cloud's Cloud Firestore database, as well as make API calls to external companies to get tracking number related information through the UPS Tracking API and send auto-generated emails with a personal twist using MailGrid. It services giftn's web app and Chrome extension.

Documentation

  • /user/:username

    POST - adds user req.body = { name: the name of user }

    GET - gets user and all corresponding information

  • /check/:username

    GET - checks if user exists

  • /personGift/:personID

    POST - adds gift to person req.body = { gift: { name: the name, price: the price, link: the link, id: unique id } }

    PUT - removes gift from person req.body = { giftID: this gift ID }

  • /person/:username

    POST - adds person to user req.body = { person: { giftInfo: {}, name: their name, id: id } }

    PUT - removes person from user req.body = { personID: the person ID}

  • /gift/:giftID

    PUT - marks gift as bought req.body = { personID: the person ID }

  • /wishlist/:giftID

    PUT - unmarks gift as bought (in wishlist) req.body = { personID: the person ID }

  • /budget/:username

    PUT - updates budget req.body = { budget: the budget }

  • /tracking/:username

    POST - adds tracking number to user req.body = { trackingNumberObject: { trackingNumber: a valid tacking number, note: from user to user about what package is, person: person tracking number is for, carrier: carrier of package (ie. UPS, FedEx) } }

    PUT - removes tracking number from user req.body = { trackingNumber: a valid tracking number }

  • /getTracking/

    GET - get UPS tracking status

  • /mail/

    PUT - send automated email req.body = { toAddress: recipient email, toName: name of who it's to, fromName: name of who it's from, trackingNumber: valid tracking number }

About

giftn API to make CRUD operations and external API calls. Won Best Finance Hack at HackUMass and First Overall at the MLH Winter Hacklympics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published