chicken-sloths / bangazon-api-sprint1

API for a mock Amazon + Etsy platform providing developers access to the company's employee & product data
0 stars 0 forks source link

Updates package.json & app.js to use body-parser #93

Closed DavidLarsKetch closed 6 years ago

DavidLarsKetch commented 6 years ago

Description

Updates app.js so we don't have merge conflicts with the extra HTTP verbs we're working on.

Number of Fixes

N/A

Related Ticket(s)

86

Problem to Solve

A middleware solution was needed to get data from requests into proper JSON format

Proposed Changes

Prepends api/v1 to all URL paths. Gives access to body-parser middleware for POST, PUT, etc. verbs

Expected Behavior

body-parser gets our data into JSON format for the sake of those HTTP calls we're making

Steps to Test Solution

  1. git merge [your-branch] dlk-app-update
  2. npm install
  3. Write a PUT or POST function in the feature you're working on
DavidLarsKetch commented 6 years ago

lol

DavidLarsKetch commented 6 years ago

hit the wrong button

DavidLarsKetch commented 6 years ago

OK, ready

jordan-castelloe commented 6 years ago

testing!