codeforkansascity / meep-backend

MIT License
8 stars 11 forks source link

add upload csv/xlsx endpoints to current resources #17

Open galbwe opened 5 years ago

galbwe commented 5 years ago

We would like to include endpoints to allow administrators to upload data to the database from a csv or xlsx file. The names for the endpoints could follow the pattern /projects/upload/csv and /projects/upload/xlsx for the projects resource, for example. The fields in the csv/xlsx file should be the same as those defined in the model for the corresponding resource.

See the flask excel docs for a potential out-of-the-box method for accomplishing this.

krisstee commented 3 years ago

Note: There's currently a test_csv.py file in the Postgres branch. Expanding that can contribute to closing out this issue