Skip to content

Instantly share code, notes, and snippets.

@isaldin
Created March 26, 2015 04:36
Show Gist options
  • Save isaldin/80a64134d9a2773d6bdf to your computer and use it in GitHub Desktop.
Save isaldin/80a64134d9a2773d6bdf to your computer and use it in GitHub Desktop.
{
categories: [
'{{repeat(5)}}',
{
id: '{{index()+1}}',
name: 'category {{index()+1}}',
logo: 'http://pbnew.otgroup.kz/assets/uploads/category_logos/{{index()}}.jpg',
organizations:[
'{{repeat(5)}}',
{
id: '{{(index()+1)*5}}',
name: '{{company()}}',
logo: 'http://pbnew.otgroup.kz/assets/uploads/organizations/{{index()}}.jpg',
order: '{{index()+1}}',
contacts: [
'{{repeat(1,2)}}',
{
id: '{{index()+1}}',
name: '{{lorem(1, "word")}}',
gsm_phone: "+65632722{{integer(00, 99)}}",
sip_phone: '+65632722{{integer(00, 99)}}',
location: {
lat: '{{floating(-90.000001, 90)}}',
lon: '{{floating(-180.000001, 180)}}',
address: '{{street()}}'
}
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment