Closed massimiliano-cannata closed 4 years ago
implemented POST,GET,PUT,DELETE using WA REST API ==============EXAMPLE POST=============== http://localhost/istsos/wa/istsos/services/demo/specimens -------------------------BODY---------------------------------- { "procedure_id": "2aefc8ee1d9d11eaa7229cb6d089992d", "eventTime": "2019-12-30T16:49:00+01:00", "observations": { "urn:ogc:def:parameter:x-istsos:1.0:meteo:air:wind:velocity": 10, "urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall": 0.7, "urn:ogc:def:parameter:x-istsos:1.0:meteo:air:humidity:relative": 88, "urn:ogc:def:parameter:x-istsos:1.0:meteo:air:temperature": 140 }, "specimen": { "description": "A sample for the Lugano Lake water quality monitoring", "campaign": "Settembre_2019", "identifier": "LUG_20170830", "name": "LUG_20170808", "sampledFeature": "http://www.istsos.org/demo/feature/LuganoLake", "materialClass": "http://www.istsos.org/material/water", "samplingMethod": "http://www.istsos.org/samplingMethod/bottiglia", "processingDetails": [ { "processOperator": "http://www.supsi.ch/ist?person=MarioBianchi", "processingDetails": "http://www.istsos.org/processes/storage", "processingProtocol": "http://ti.ch/oasi/sop12", "time": "2017-07-01T15:27:00+01:00" }, { "processOperator": "https://www.supsi.ch/ist?person=LucaRossi", "processingDetails": "http://www.istsos.org/processes/Reaction", "processingProtocol": "http://ti.ch/oasi/sop12", "time": "2017-07-06T15:27:00+01:00" } ], "size": { "value": 1, "uom": "http://www.uom/liter" }, "currentLocation": { "href": "http://www.ti.ch/umam", "rel": "http://www.onu.org/offices", "title": "Ufficio Monitoraggio Ambientale - Canton Ticino" }, "specimenType": null } }
implemented POST,GET,PUT,DELETE using WA REST API ==============EXAMPLE POST=============== http://localhost/istsos/wa/istsos/services/demo/specimens -------------------------BODY---------------------------------- { "procedure_id": "2aefc8ee1d9d11eaa7229cb6d089992d", "eventTime": "2019-12-30T16:49:00+01:00", "observations": { "urn:ogc:def:parameter:x-istsos:1.0:meteo:air:wind:velocity": 10, "urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall": 0.7, "urn:ogc:def:parameter:x-istsos:1.0:meteo:air:humidity:relative": 88, "urn:ogc:def:parameter:x-istsos:1.0:meteo:air:temperature": 140 }, "specimen": { "description": "A sample for the Lugano Lake water quality monitoring", "campaign": "Settembre_2019", "identifier": "LUG_20170830", "name": "LUG_20170808", "sampledFeature": "http://www.istsos.org/demo/feature/LuganoLake", "materialClass": "http://www.istsos.org/material/water", "samplingMethod": "http://www.istsos.org/samplingMethod/bottiglia", "processingDetails": [ { "processOperator": "http://www.supsi.ch/ist?person=MarioBianchi", "processingDetails": "http://www.istsos.org/processes/storage", "processingProtocol": "http://ti.ch/oasi/sop12", "time": "2017-07-01T15:27:00+01:00" }, { "processOperator": "https://www.supsi.ch/ist?person=LucaRossi", "processingDetails": "http://www.istsos.org/processes/Reaction", "processingProtocol": "http://ti.ch/oasi/sop12", "time": "2017-07-06T15:27:00+01:00" } ], "size": { "value": 1, "uom": "http://www.uom/liter" }, "currentLocation": { "href": "http://www.ti.ch/umam", "rel": "http://www.onu.org/offices", "title": "Ufficio Monitoraggio Ambientale - Canton Ticino" }, "specimenType": null } }