Commit Graph

15 Commits

Author SHA1 Message Date
a7d23d9e7c Added Ninject and ninject resolvers to enable dependency inject on the ApiController Classes. 2017-01-30 22:39:34 +00:00
a892e1d2c8 suspect service1 file incomplete due to selected line commits.
Added sqlite references.
added new CardsController, SwipeDataController and UsersController classes which all pull in SQLite to retrieve, or store their data.
2017-01-30 22:38:49 +00:00
3579f750cc moved ValuesController to its own class, remove UsersController and SwipeDataController classes, pending sqlite implementation. 2017-01-30 22:34:25 +00:00
bc3c7a5e31 moved owin config to its own file,
removed predefined route definition in favour of mapping attributes on ApiController classes.
Added JsonpFormatter to ensure cross-domain api web requests will work to this API.
added formatter to HTTPConfiguration for owin config.
2017-01-30 22:30:58 +00:00
10027d7f22 added sqlite dependency 2017-01-30 22:28:20 +00:00
c7424d806b added sqlite third party dependencies. 2017-01-30 22:27:43 +00:00
90ce5d6382 removed interfaces reference (unused in RPI variant.) 2017-01-30 22:27:02 +00:00
7c8dd36605 added userstest endpoint to respond with an object with embedded array, this makes knockout binding easier for SPA. 2017-01-27 09:28:30 +00:00
f625396537 Add test data directory, with generate.js data file and users.txt which has some users + id cards in (testing purposes). 2017-01-26 16:53:31 +00:00
e5ce621827 Initial commit of Windows Service DataCenter variant (pulling code from the RPi variant). 2017-01-26 16:45:04 +00:00
9eed5e827a removed args argument, was annoying.
changed debug writelines to console writelines for desktop operation.
tidied code.
moved over to use PostAsync, to prevent app hanging when trying to post to DataCenter.
changed api endpoint to windows datacenter desktop endpoint.
--end Service1 changes.
remove args from Start method
--end Program changes
added try catch to stop errors when the data center endpoint isnt up.
--end DataCenterHelper changes.
removed topshelf configuration stuff.
--end ConfigureService changes.
2017-01-26 16:44:07 +00:00
dbe1425a16 adding localhistory ignore stuff. 2017-01-26 16:40:53 +00:00
ed5162b9e7 Initial commit of data center code to receive HTTP Posts from remote card readers and write them into the database.
Also supports Get request for /api/users and /api/users?userId=x and /api/timelogs?userId=x and /api/stats

stats needs fleshing out.
also logic behind when someone is checking in/out..
2017-01-25 22:47:02 +00:00
dd264224b3 ignore binary output files etc. 2017-01-25 22:43:56 +00:00
fd78367fb9 first commit of code to sit as service on machine, wait for card reader input, read the unique Id from the card, then post to the remote endpoint. 2017-01-25 22:43:41 +00:00