david-fisher / 320-S20-Track2

Integration Track 2
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

GET /data #90

Closed WildeFire7 closed 4 years ago

WildeFire7 commented 4 years ago

Request: nothing

Response: { "csv for appointments": csv in array of arrays "csv for tags": csv in array of arrays }

ex. "csv for appointments" = [ [ "Appointment type", "Frequency" ], [ "Career Advising", 14 ], [ "Resume Review", 4 ] ]

ex. "csv for tags" = "[ [ "Tag name", "Frequency" ], [ "Java", 0 ], [ "Python", 0 ] ] ---frequency = how many supps have that tag

Can return csv in string form if preferred

If no data in db { "csv for appointments": "No appointment data", "csv for tags": "No tag data" }