forked from cemaden-educacao/WPD-MobileApp
GabrielTrettel
3 years ago
8 changed files with 123 additions and 89 deletions
-
3db/1.wpd.sys_config.sql
-
11db/wp6.sample.capabilities-api.json
-
37db/wp6.sample.forms-fields-answers.json
-
21db/wp6.sample.pluviometer-api.json
-
29db/wp6.sample.pluviometer-forms-api.json
-
66db/wp6.sample.pluviometer-modal-api.json
-
35db/wp6.sample.pluviometer-register-api.json
-
BINdb/wpd.erd.pdf
@ -1,21 +1,24 @@ |
|||
This example for floodzones also applies for river and rain. All fields are equal. |
|||
|
|||
|
|||
ws: //waterproofing.geog.uni-heidelberg.de/wss/hot/data?type=FLOODZONES_FORM |
|||
{ |
|||
"responseData": { |
|||
"array_to_json": [{ |
|||
"formcode": "FLOODZONES_FORM", |
|||
"formsanswersuserinformer": "admin@wpd.com", |
|||
"filds": [{ |
|||
"fieldsanswerssituation": "intransitavel", |
|||
"fieldsanswerslatitude": 4.750550953715424, |
|||
"fieldsanswerslongitude": -74.1179903701844, |
|||
"fieldsanswerseventaddress": "Rua dos bobos, 81", |
|||
"fieldsanswerseventdate": "11-08-2021", |
|||
"fieldsanswerseventtime": "21:52", |
|||
"fielsanswercomment": "users description about the current event", |
|||
"fieldsanswerimages": "base64" |
|||
}] |
|||
}] |
|||
"responseData": { |
|||
"array_to_json": [ |
|||
{ |
|||
"formcode": "FLOODZONES_FORM", |
|||
"formsanswersuserinformer": "admin@wpd.com", |
|||
"filds": [ |
|||
{ |
|||
"fieldsanswerssituation": "intransitavel", |
|||
"fieldsanswerslatitude": 4.750550953715424, |
|||
"fieldsanswerslongitude": -74.1179903701844, |
|||
"fieldsanswerseventaddress": "Rua dos bobos, 81", |
|||
"fieldsanswerseventdate": "11-08-2021", |
|||
"fieldsanswerseventtime": "21:52", |
|||
"fielsanswercomment": "users description about the current event", |
|||
"fieldsanswerimages": "base64" |
|||
} |
|||
] |
|||
} |
|||
] |
|||
} |
|||
} |
@ -1,18 +1,19 @@ |
|||
JSON intended to display pluviometer icons on map |
|||
|
|||
|
|||
ws: //waterproofing.geog.uni-heidelberg.de/wss/hot/data?type=PLUVIOMETERS_FORM |
|||
{ |
|||
"responseData": { |
|||
"array_to_json": [{ |
|||
"formcode": "PLUVIOMETERS_FORM", |
|||
"formsanswersuserinformer": "admin@wpd.com", |
|||
"fieldsanswerslatitude": 4.750550953715424, |
|||
"fieldsanswerslongitude": -74.1179903701844 |
|||
}, |
|||
"array_to_json": [ |
|||
{ |
|||
"formcode": "PLUVIOMETERS_FORM", |
|||
"formsanswersuserinformer": "admin@wpd.com", |
|||
"fieldsanswerslatitude": 4.750550953715424, |
|||
"fieldsanswerslongitude": -74.1179903701844 |
|||
}, |
|||
"formcode": "PLUVIOMETERS_FORM", |
|||
"formsanswersuserinformer": "admin222@wpd.com", |
|||
"fieldsanswerslatitude": 4.23876482872188, |
|||
"fieldsanswerslongitude": -79.1179903701844 |
|||
}] |
|||
} |
|||
} |
|||
] |
|||
} |
|||
} |
@ -1,18 +1,21 @@ |
|||
JSON intended to insert pluviometer forms data into datalake |
|||
|
|||
|
|||
ws: //waterproofing.geog.uni-heidelberg.de/wss/hot/data?type=PLUVIOMETERS_FORM |
|||
{ |
|||
"responseData": { |
|||
"array_to_json": [{ |
|||
"formcode": "PLUVIOMETERS_FORM", |
|||
"formsanswersuserinformer": "admin@wpd.com", |
|||
"fias": [{ |
|||
"fieldsanswersdate": "11/02", |
|||
"fieldsanswersrainamount": 5, |
|||
"fieldsanswerseventtime": "21:52", |
|||
"fielsanswerimages" : "base64", |
|||
"fielsanswercomment": "users description about the current event" |
|||
}] |
|||
}] |
|||
"array_to_json": [ |
|||
{ |
|||
"formcode": "PLUVIOMETERS_FORM", |
|||
"formsanswersuserinformer": "admin@wpd.com", |
|||
"fias": [ |
|||
{ |
|||
"fieldsanswersdate": "11/02", |
|||
"fieldsanswersrainamount": 5, |
|||
"fieldsanswerseventtime": "21:52", |
|||
"fielsanswerimages": "base64", |
|||
"fielsanswercomment": "users description about the current event" |
|||
} |
|||
] |
|||
} |
|||
] |
|||
} |
|||
} |
@ -1,27 +1,51 @@ |
|||
JSON intended to display pluviometer data on modal |
|||
|
|||
|
|||
ws: //waterproofing.geog.uni-heidelberg.de/wss/hot/data?type=PLUVIOMETERS_FORM |
|||
{ |
|||
"responseData": { |
|||
"array_to_json": [{ |
|||
"formcode": "PLUVIOMETERS_FORM", |
|||
"formsanswersuserinformer": "admin@wpd.com", |
|||
"fias": [{ |
|||
"username" : "Fulano", |
|||
"userrole" : "Professor", |
|||
"institutionname": "E.E. Vicente Leporace", |
|||
"address" : "Rua Nassau", |
|||
"images" : "base64", |
|||
"pluviometerformsanswers" : [ |
|||
{"fieldsanswersdate": "11/02", "fieldsanswersrainamount": 5}, |
|||
{"fieldsanswersdate": "10/02", "fieldsanswersrainamount": 5}, |
|||
{"fieldsanswersdate": "9/02", "fieldsanswersrainamount": 5}, |
|||
{"fieldsanswersdate": "8/02", "fieldsanswersrainamount": 5}, |
|||
{"fieldsanswersdate": "7/02", "fieldsanswersrainamount": 5}, |
|||
{"fieldsanswersdate": "6/02", "fieldsanswersrainamount": 5}, |
|||
{"fieldsanswersdate": "2/02", "fieldsanswersrainamount": 5} |
|||
"array_to_json": [ |
|||
{ |
|||
"formcode": "PLUVIOMETERS_FORM", |
|||
"formsanswersuserinformer": "admin@wpd.com", |
|||
"fias": [ |
|||
{ |
|||
"username": "Fulano", |
|||
"userrole": "Professor", |
|||
"institutionname": "E.E. Vicente Leporace", |
|||
"address": "Rua Nassau", |
|||
"images": "base64", |
|||
"pluviometerformsanswers": [ |
|||
{ |
|||
"fieldsanswersdate": "11/02", |
|||
"fieldsanswersrainamount": 5 |
|||
}, |
|||
{ |
|||
"fieldsanswersdate": "10/02", |
|||
"fieldsanswersrainamount": 5 |
|||
}, |
|||
{ |
|||
"fieldsanswersdate": "9/02", |
|||
"fieldsanswersrainamount": 5 |
|||
}, |
|||
{ |
|||
"fieldsanswersdate": "8/02", |
|||
"fieldsanswersrainamount": 5 |
|||
}, |
|||
{ |
|||
"fieldsanswersdate": "7/02", |
|||
"fieldsanswersrainamount": 5 |
|||
}, |
|||
{ |
|||
"fieldsanswersdate": "6/02", |
|||
"fieldsanswersrainamount": 5 |
|||
}, |
|||
{ |
|||
"fieldsanswersdate": "2/02", |
|||
"fieldsanswersrainamount": 5 |
|||
} |
|||
] |
|||
} |
|||
] |
|||
}] |
|||
}] |
|||
} |
|||
] |
|||
} |
|||
} |
@ -1,20 +1,23 @@ |
|||
This JSON is used to insert Pluviometer data into datalake |
|||
|
|||
|
|||
ws: //waterproofing.geog.uni-heidelberg.de/wss/hot/data?type=PLUVIOMETERS_REGISTRATION |
|||
{ |
|||
"responseData": { |
|||
"array_to_json": [{ |
|||
"formcode": "PLUVIOMETERS_REGISTRATION", |
|||
"formsanswersuserinformer": "admin@wpd.com", |
|||
"filds": [{ |
|||
"fieldsanswerslatitude": 4.750550953715424, |
|||
"fieldsanswerslongitude": -74.1179903701844, |
|||
"fieldsanswerseventaddress": "Rua dos bobos, 81", |
|||
"fieldsanswerseventdate": "11-08-2021", |
|||
"fieldsanswerseventtime": "21:52", |
|||
"fieldsanswersinstitutename": "E. E. Vagner", |
|||
"fieldsanswerrinstitutetype": "Escola" |
|||
}] |
|||
}] |
|||
"responseData": { |
|||
"array_to_json": [ |
|||
{ |
|||
"formcode": "PLUVIOMETERS_REGISTRATION", |
|||
"formsanswersuserinformer": "admin@wpd.com", |
|||
"filds": [ |
|||
{ |
|||
"fieldsanswerslatitude": 4.750550953715424, |
|||
"fieldsanswerslongitude": -74.1179903701844, |
|||
"fieldsanswerseventaddress": "Rua dos bobos, 81", |
|||
"fieldsanswerseventdate": "11-08-2021", |
|||
"fieldsanswerseventtime": "21:52", |
|||
"fieldsanswersinstitutename": "E. E. Vagner", |
|||
"fieldsanswerrinstitutetype": "Escola" |
|||
} |
|||
] |
|||
} |
|||
] |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue