Hello Saif,
The basic concept of using API is Expose API and Consume API.
Both usages are different.
In a scenario where you want to share the data from Module A to another Module B,
Module A is the producer and Module B is the consumer of the data.
Here in Module A – you have to create an API to provide data to Module B, which means it exposes the data.
So, you will create an expose API in Module A.
As Module B is a consumer of the data, there you will create a Consume API to get the data from Expose API created in Module A.
Kind Regards,
Riyaz