Consume Restful Service in Mule using Anypoint Studio| Call GET, POST, PUT, DELETE endpoints in Mule

Опубликовано: 12 Октябрь 2024
на канале: The Java Tech Learning
34,630
260

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": ""
}
}