WebAPI/SimplePush: Difference between revisions

Jump to navigation Jump to search
Line 223: Line 223:
* 200 - The server should return an object with the following fields:
* 200 - The server should return an object with the following fields:


   { "updates": [{"channelID": "id", "version": "XXX"}, ...], An association of ChannelIDs and versions that have changed since the last time the UA called /update.
   {   // An association of ChannelIDs and versions that have changed  
     "expired": ["channelID1", "channelID2", ...], A list of ChannelIDs which have expired. The UA should remove these from its own database, and ask applications to re-register.
      // since the last time the UA called /update.
  }
   
     "updates": [{"channelID": "id",  
                "version": "XXX"}, ...],  
      // A list of ChannelIDs which have expired. The UA should remove  
      // these from its own database, and ask applications to re-register.
    "expired": ["channelID1", "channelID2", ...]  }


* 304 - No modifications since time specified in <tt>If-Modified-Since</tt> header.
* 304 - No modifications since time specified in <tt>If-Modified-Since</tt> header.
Confirmed users
1,022

edits

Navigation menu