This is a full tutorial on accessing different HTTP endpoints of any Restful service like GET, POST, PUT, and DELETE in MuleSoft using Anypoint Studio.
Following are the links used in tutorial:
----------American Flights----------------------
Endpoints:
GET: http://training-american-ws.cloudhub....
GET: http://training-american-ws.cloudhub....{ID}
DELETE: http://training-american-ws.cloudhub....{ID}
POST: http://training-american-ws.cloudhub....
{
"ID": "",
"code": "",
"price": "",
"departureDate": "",
"origin": "",
"destination": "",
"emptySeats": "",
"plane": {
"type": "",
"totalSeats": ""
}
}
PUT: http://training-american-ws.cloudhub....{ID}
{
"ID": "",
"code": "",
"price": "",
"departureDate": "",
"origin": "",
"destination": "",
"emptySeats": "",
"plane": {
"type": "",
"totalSeats": ""
}
}