RSS

Tag Archives: API

Create-On-Update Pattern for AngularJS Applications

This is a suggestion for how to design the JSON/REST protocol between the Angular application and the server, to handle creation of items easily and conveniently.  Use a special ID value to indicate that the object does not exist on the server, and update like normal.  The server detects this and creates it on demand. Read the rest of this entry »

Advertisements
 
Leave a comment

Posted by on June 11, 2015 in Coding, Design

 

Tags: , , ,

JSON/REST API – Handling Dates

In this post, I lay out the reason that you should always transfer dates in a JSON/REST API as an integer epoch value: the number of milliseconds since Jan 1, 1970. If you think it should be anything else, please read on….
Read the rest of this entry »

 
Leave a comment

Posted by on June 10, 2015 in Coding, Design

 

Tags: , , , , , ,