Skip to content

Instantly share code, notes, and snippets.

@alwold
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alwold/9837593 to your computer and use it in GitHub Desktop.
Save alwold/9837593 to your computer and use it in GitHub Desktop.
GET /mobile/api/v1/menu.json HTTP/1.1
User-Agent: asu-mobile/1.0
Host: www.asu.edu
Accept: application/json
If-Modified-Since: Fri, 28 Mar 2014 16:51:43 GMT
HTTP/1.1 200 OK
Date: Fri, 28 Mar 2014 16:57:04 GMT
Last-Modified: Fri, 28 Mar 2014 16:45:00 GMT
Content-Length: xxx
Content-Type: application/json
{
"status": "ok",
"menu": [
{
"order": 1,
"icon": "http://www.asu.edu/mobile/images/icon1.png",
"icon-background-position": "0 -50px",
"title": "My ASU",
"url": "https://my.asu.edu",
"target": "native"
},
{
"order": 2,
"icon": "http://www.asu.edu/mobile/images/icon1.png",
"icon-background-position": "0 0",
"title": "More stuff",
"menu": [
{
"order": 1,
"icon": "http://www.asu.edu/mobile/images/icon2.png",
"title": "Submenu thing",
"url": "http://www.example.com",
"target": "internal"
}
]
},
{
"order": 3,
"icon": "http://www.asu.edu/mobile/images/icon1.png",
"icon-background-position": "0 0",
"title": "Directory",
"target": "app",
"url": "/directory"
}
],
"timestamp": "2014-03-28T16:57:04Z",
"lastUpdate": "2014-03-28T16:45:00Z"
}
@alwold
Copy link
Author

alwold commented Mar 28, 2014

This shows an http request/response where the file has been modified, and it responds with the full file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment