How to use get method using REST API

How to use get method using REST API

  
By using the below url i successfully created disruption in our azure database using rest client.

http://wwdt.outsystems.net/amco/rest/DisruptiveWS/Disruption

Now i want to retrieve the inserted record using 'Get' Method 

can anyone give me the exact steps how it needs to be retrived using rest api with exact url details or how we can construct the url in order to retrieve the inserted record in outsystems

Request file has been attached. Kindly help me on this to resolve this.

Thanks in advance.

Hi Mohamed,

I'm not sure what are you trying to do.

Pointing an Outsystmes application to that REST end point reveals 2 methods

CreateDisruption and GetDisruptiveEvents.

Testing the last one:

GET /Damco/rest/DisruptiveEventsWS/GetDisruptiveEvents HTTP/1.1
Host: wwdt.outsystems.net User-Agent: OutSystemsPlatform


Outputs this:

HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8
Pragma: no-cache Connection: keep-alive Content-Length: 8147 Cache-Control: no-cache Date: Thu, 11 Feb 2016 14:59:16 GMT Expires: -1 Server: Microsoft-IIS/8.5
[ { "Disruption": { "disruption": { "id": 87, "name": "Blizzard", "category": "Natural" }, "messages": [ { "datetime": "2016-01-23T21:55:09Z", "text": "Winter Storm Jonas s", "source": "Twitter" } ], "disruption_date": "2016-02-04", "no_of_disruption_messages": "1", "severity": "20", "severity_track": [ { "datetime": "2016-01-23 21:55:09", "severity": "12" }, { "datetime": "2016-01-23 21:55:09", "severity": "20" } ], "created_by": "5232", "created_date": "2016-02-04 05:26:08", "updated_by": "5232", "updated_date": "2016-02-04" } }, { "Disruption": { "disruption": { "id": 89, "name": "BP Oilspil", "category": "Oil Spill" }, "ports": [ { "id": "1", "name": "Ho Chi Minh City (Saigon)", "latitude": "10.468295", "longitude": "106.946725", "country": "VN" }, { "id": "17", "name": "Hong Kong", "latitude": "22.288453", "longitude": "114.155214", "country": "CN" }, { "id": "3", "name": "Jeddah", "latitude": "21.487194", "longitude": "39.158277", "country": "SA" }, { "id": "18", "name": "Mina Rashid ", "latitude": "25.295053", "longitude": "55.270306", "country": "AE" } ], "messages": [

 



Is this what you're looking for?