net-art-uchicago / cta-file-sharing

a collaborative artware project by Media Art and Design students at the University of Chicago.
GNU General Public License v3.0
2 stars 15 forks source link

Main get poem rest api #33

Closed ishan710 closed 1 year ago

ishan710 commented 1 year ago

This PR implements the get_poem rest api and adds a testing functionality working with sample data till the time the database team can work on their part.

One big change in this PR is that I don't need searchPoemByAuthor searchPoemByLoc, and searchPoemByRoute function from the database team anymore. I only need an all_poems function that returns all the poems. And on on that I apply a filter for given author, location, route.

Note: For some reason, my linter is not working correctly and I can not see any code formatting errors. I can try to fix this in class.

nbriz commented 1 year ago

this seems to be working great (i'll close the other PR now since this one is replacing it).

if u can't get the StandardJS addon for VSCode working u should still be able to run the linter in the terminal by running standard which will check all ur files, or standard backend/REST-API.js to just check that file