c48c50d2c5
API: Move prices under securities
...
For example, instead of GETting /prices/5 to query a price with ID 5,
you now must GET /securities/2/prices/5 (assuming price 5's SecurityId
is 2)
2017-11-16 19:32:30 -05:00
5a6be5a07b
Stop using form elements for API
...
Just send the JSON as the request body
2017-11-13 20:48:19 -05:00
9624f0c5bc
Move to a consistent way of handling IDs in URLs
2017-11-12 21:15:00 -05:00
507868b7a5
Begin move away from using http.ServeMux
2017-11-12 20:17:27 -05:00
9429b748fa
Prefix all API endpoints with 'v1/', pluralize collections
2017-11-11 08:05:09 -05:00
f2a45dc6b6
Make SecurityType its own type
2017-11-05 20:43:32 -05:00
a1d294c309
securities: Allow SQL update count to be 0
...
MySQL reports 0 here, while sqlite reports 1. Improve the logged message
while we're at it.
2017-10-24 20:24:12 -04:00
2ff1f47432
Remove duplicate *Tx versions of database access methods
...
Simplify naming to remove "Tx" now that all handlers only have access to
transactions anyway, and always use "tx" as the name of the variable
representing the SQL transactions (to make it less likely to cause
confusion with monetary transactions).
2017-10-14 19:41:13 -04:00
4e53a5e59c
Use SQL transactions for the entirety of every request
2017-10-14 14:20:50 -04:00
d5f8d57bf2
testing: Add tests for fetching multiple securities
2017-10-12 20:47:44 -04:00
14b0839b41
Add security tests
2017-10-09 21:11:50 -04:00
e0ce1576cd
Add first test
...
This tests only querying security templates, and not very exhaustively,
but it's a test!
2017-10-05 08:06:08 -04:00
d0a5980b85
First pass at reorganizing go code into sub-packages
2017-10-04 19:35:59 -04:00