aboutsummaryrefslogtreecommitdiffstats
path: root/cmd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Can now parse a return XLSX fileMatthew Lemon2024-05-311-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.
* Some tidyingMatthew Lemon2024-05-291-17/+16
|
* Nice refactoringMatthew Lemon2024-04-202-13/+36
| | | | The FilePreparer interface is now nicer.
* wip: bad implementation of unzipMatthew Lemon2024-04-202-0/+36
|
* wip: testing the file package interfaceMatthew Lemon2024-04-202-14/+35
|
* First parse of an Excel fileMatthew Lemon2024-04-196-68/+386
|
* First test and first appearance of returns codeMatthew Lemon2024-04-124-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.
* Completion of stateless API for datamap createMatthew Lemon2024-04-121-0/+1
|
* Adds back old JSON-based handlerMatthew Lemon2024-04-121-0/+58
|
* Adds ability to save a single datamap to the databaseMatthew Lemon2024-04-103-9/+94
|
* First introduction of migrations using golang-migrateMatthew Lemon2024-04-102-6/+8
|
* Adds some database pool configuration and flagsMatthew Lemon2024-04-101-1/+19
|
* Adds .env file with database dsn in itMatthew Lemon2024-04-101-1/+8
|
* Postgres implementation now set up and in containers - no tables yetMatthew Lemon2024-04-101-1/+37
|
* Adds docker compose config file and changes application portMatthew Lemon2024-04-101-1/+4
|
* Reorganises cmd/ structure for publication on pkg.go.devMatthew Lemon2024-04-066-0/+0
| | | | Adds key commands to Makefile
* Adds the GPL clauses to main source code filesMatthew Lemon2024-04-066-0/+102
|
* Changes the versionMatthew Lemon2024-03-131-1/+1
|
* Handler for creating a datamapLine objectMatthew Lemon2024-03-132-7/+21
|
* Implements our own errorsMatthew Lemon2024-03-133-12/+46
|
* Adds errors file and dbasik.sqlMatthew Lemon2024-03-131-0/+7
|
* Wraps the JSON response for healthcheck in an envelopeMatthew Lemon2024-03-121-5/+7
|
* Wraps the JSON response in an envelopeMatthew Lemon2024-03-122-2/+5
|
* wip: Indent the JSONMatthew Lemon2024-03-122-3/+43
|
* wip: full datamap struct is now converted to jsonMatthew Lemon2024-03-121-6/+16
|
* wip: returns the parsed csv as jsonMatthew Lemon2024-03-121-28/+34
|
* wip: writes contents of uploaded csv file to http.ResponseWriterMatthew Lemon2024-03-121-12/+28
|
* First implementation of csv uploadMatthew Lemon2024-03-121-1/+33
|
* Implements the new writeJSON methodMatthew Lemon2024-03-111-5/+1
|
* Adds a writeJSON helperMatthew Lemon2024-03-113-4/+50
|
* Adds first bit of JSONMatthew Lemon2024-03-111-3/+4
|
* Handles negative idMatthew Lemon2024-03-111-2/+1
|
* Initial commitMatthew Lemon2024-03-114-0/+111