Skip to content

Instantly share code, notes, and snippets.

@sync
Created March 13, 2011 06:42
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 sync/867931 to your computer and use it in GitHub Desktop.
Save sync/867931 to your computer and use it in GitHub Desktop.
Tour nested tracks
{
"tour": {
"title": "New tour uploading test",
"description": "Test Description",
"tags": "Test ",
"transport_type": "0",
"published": "true",
"tracks_attributes": [{
"position": "1",
"title": "Stop 1",
"geotag": "true",
"length": "19.529937",
"lat": "46.558860",
"lng": "6.328125",
"upload_base64": "Y2FmZgACAgAgICA==",
"upload_filename": "321690607.caf",
"description": "Description here",
"track_pics_attributes": [{
"upload_base64": "/9j/4AAQSkZJRgABAQAAAQABAAD/4QBYRXhpZgAATU0AKgAAAAgAAgESAAMof/Z",
"upload_filename": "321690709.jpg"
}]
},
{
"position": "2",
"title": "Stop 2",
"geotag": "true",
"length": "0.000000",
"lat": "46.558860",
"lng": "6.328125",
"description": "Description here",
"track_pics_attributes": [{
"upload_base64": "/9j/4AAQSkZJRgABAQAAAQABAAD/btof/Z",
"upload_filename": "321690766.jpg"
}]
}],
"upload_base64": "/9j/4AAQSkZJRgABAQAAS6LdTb/AAbtof/Z",
"upload_filename": "321690780.jpg"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment