Tweet-311-Denver / tweet_311_denver_service

Backend for Tweet311Denver Turing Project
MIT License
1 stars 0 forks source link

Post report endpoint #24

Closed Dustin-Mikusko closed 4 years ago

Dustin-Mikusko commented 4 years ago

What does this PR do?

This PR creates the /api/v1/reports endpoint with a GET all reports handler, and a POST new report handler.

Where should the reviewer start?

In lib/api/v1/reports.js there is the two new methods.

Any background info?

There was a lot of npm install and uninstalls done in the process here. I tried using babel to use import/export syntax, but the test suite did not like it at all, so I uninstalled everything babel. The puppeteer.js file has been refactored to use exports.methods rather then exporting each function individually.

Additional notes

As of now, the POST api endpoint does the following: