aboutsummaryrefslogtreecommitdiffstats
path: root/cmd (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-05-31Can now parse a return XLSX fileMatthew Lemon1-21/+20
We can now submit a datamap.csv and a single return xlsx file using the following command, and get a Return JSON string back with the parsed date: `curl -X POST -F "file=@./datamap.csv" -F "returnfile=@./resources/test_two_sheets.xlsm" \ -F "name=bobbins" -F "description=This is a long description of the datamap." \ http://localhost:5000/v1/return` I have renamed the old test.xlsm file here to test_two_sheets.xlsm - having remove a sheet from the test.xlsm. I did this to ensure that the parsing handles multiple sheets which it does. Still a fair amount of clearning up here but if you run the server and send in this request, it works.
2024-05-29Some tidyingMatthew Lemon1-17/+16
2024-04-20Nice refactoringMatthew Lemon2-13/+36
The FilePreparer interface is now nicer.
2024-04-20wip: bad implementation of unzipMatthew Lemon2-0/+36
2024-04-20wip: testing the file package interfaceMatthew Lemon2-14/+35
2024-04-19First parse of an Excel fileMatthew Lemon6-68/+386
2024-04-12First test and first appearance of returns codeMatthew Lemon4-155/+319
Test a function that gets all sheets from a datamap struct. A new function to handle a datamap and a return together in one POST request.
2024-04-12Completion of stateless API for datamap createMatthew Lemon1-0/+1
2024-04-12Adds back old JSON-based handlerMatthew Lemon1-0/+58
2024-04-10Adds ability to save a single datamap to the databaseMatthew Lemon3-9/+94
2024-04-10First introduction of migrations using golang-migrateMatthew Lemon2-6/+8
2024-04-10Adds some database pool configuration and flagsMatthew Lemon1-1/+19
2024-04-10Adds .env file with database dsn in itMatthew Lemon1-1/+8
2024-04-10Postgres implementation now set up and in containers - no tables yetMatthew Lemon1-1/+37
2024-04-10Adds docker compose config file and changes application portMatthew Lemon1-1/+4
2024-04-06Reorganises cmd/ structure for publication on pkg.go.devMatthew Lemon6-0/+0
Adds key commands to Makefile
2024-04-06Adds the GPL clauses to main source code filesMatthew Lemon6-0/+102
2024-03-13Changes the versionMatthew Lemon1-1/+1
2024-03-13Handler for creating a datamapLine objectMatthew Lemon2-7/+21
2024-03-13Implements our own errorsMatthew Lemon3-12/+46
2024-03-13Adds errors file and dbasik.sqlMatthew Lemon1-0/+7
2024-03-12Wraps the JSON response for healthcheck in an envelopeMatthew Lemon1-5/+7
2024-03-12Wraps the JSON response in an envelopeMatthew Lemon2-2/+5
2024-03-12wip: Indent the JSONMatthew Lemon2-3/+43
2024-03-12wip: full datamap struct is now converted to jsonMatthew Lemon1-6/+16
2024-03-12wip: returns the parsed csv as jsonMatthew Lemon1-28/+34
2024-03-12wip: writes contents of uploaded csv file to http.ResponseWriterMatthew Lemon1-12/+28
2024-03-12First implementation of csv uploadMatthew Lemon1-1/+33
2024-03-11Implements the new writeJSON methodMatthew Lemon1-5/+1
2024-03-11Adds a writeJSON helperMatthew Lemon3-4/+50
2024-03-11Adds first bit of JSONMatthew Lemon1-3/+4
2024-03-11Handles negative idMatthew Lemon1-2/+1