Hi,
Go through the following documentation :
https://docs.mendix.com/howto/integration/publish-rest-service
The following documentation will helps you to achieve it
https://docs.mendix.com/howto/integration/publish-rest-service
https://docs.mendix.com/howto/integration/consume-a-rest-service
https://docs.mendix.com/howto/integration/expose-a-web-service
https://docs.mendix.com/howto/integration/consume-a-simple-web-service
https://docs.mendix.com/howto/integration/consume-a-complex-web-service