I’ve completed the work in implementing the API.
This was surprisingly more complex than expected. I’ve spent a bit of time working with WebApi and I’d also done the work to design the API, but I still ran into a few unexpected issues, some of which required me to change the design of the API.
Finding the IP address
Routing Fun
Retrieving values passed in
I ran into a few problems trying to retrieve values passed to the server. Should they go in the body? URL? Headers?
In retrospect, probably the best place for the session id would have been as a header. Ideally the authentication for this could be handled as less of a copy and paste implementation. It would be a bit overkill in the current situation though.
Progress
Document the UI – I’ve found this tends to make the implementation clearerImplement in bootstrap, MVC4 with SQL Server backendDesign JSON API to access appImplement JSON api using WebApi backend- Replace MVC app with javascript client side framework, angular
- Swap the SQL Server backend for a No SQL database
- Replace the WebApi backend with an F# implementation
- Replace the WebApi backend with node.js