Skip to content

Instantly share code, notes, and snippets.

@Tadas44
Created July 7, 2017 10:23
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 Tadas44/887400156f23a9e827a2d84a1e57e7b7 to your computer and use it in GitHub Desktop.
Save Tadas44/887400156f23a9e827a2d84a1e57e7b7 to your computer and use it in GitHub Desktop.
Unesco
{
"data": [{
"dataserie": "12312",
"user": "petrr",
"date": "2017-06-29T10:00:00.000Z",
"selopt_type": "numbers",
"selopt_values": ["1", null, "3"],
"selopt_notes": ["note1", null, "note3"]
}, {
"dataserie": "12313",
"user": "petrr",
"date": "2017-06-29T10:00:00.000Z",
"selopt_type": "select_option",
"selopt_values": ["Erosional"],
"selopt_notes": ["Note 1"]
}]
}
@michelemercaldi
Copy link

upload gpoint api become: PUT http:///api/gpoints/merge
with payload
[
{
"gpoint_id": "721060",
"gpoint":{
"series":[
["2017-06-29T10:00:00.000Z",null,"1",null,null,"4",null,null,null,null,null,null]
],
"seriesnote":[
["2017-06-29T10:00:00.000Z",null,"note1",null,null,"note4",null,null,null,null,null,null]
],
"serieowner":[
["2017-06-29T10:00:00.000Z",null,"alsalhi",null,null,"alsalhi",null,null,null,null,null,null]
]
}
},
{
"gpoint_id": "720543",
"gpoint":{
"seriestring":[
["2017-06-29T10:00:00.000Z","Erosional"]
],
"serienote":[
["2017-06-29T10:00:00.000Z","geo"]
],
"serieowner":[
["2017-06-29T10:00:00.000Z","alsalhi"]
]
}
},
...
...
]

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