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
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.
Document the UI – I’ve found this tends to make the implementation clearer Implement in bootstrap, MVC4 with SQL Server backend Design JSON API to access app Implement JSON api using WebApi backend
- 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