Code4HR / local-art-api

Public Art Installations in Norfolk, VA
https://localartapi-code4hr.rhcloud.com/
GNU Affero General Public License v3.0
4 stars 4 forks source link

MongoDB REST #15

Closed ghost closed 10 years ago

ghost commented 10 years ago

How much difficulty would returning solely Mongo data pose once imported?

qwo commented 10 years ago

ah so i guess you saw the evil

var exhibits = require("./data/exhibits.json")

shouldn't be hard and pretty easy but i think since its not liquid/volitile data, not making db queries are ok.

If you need custom queries, i can write routes to perform some actions you need.

ghost commented 10 years ago

Nah, just wanted to make sure that if we only return a JSON if it matches cached/stored data, you know? If we want to mutate the dataset, we could do so and not have to rely on a flat file if we don't need to, especially if the City of Norfolk may not update the original data sets all that much, if ever.

ghost commented 10 years ago

Closing since #23 encompasses this.