What is an Api - here can you give an example. I heard that an api is used to communicate between two Applications. But ifwe have only one application then?
When I referred to stackoverflow for what is an Api?- I got an information that an api helps a program to communicate with another program. There was an example - In online shopping website we provide credit card details and thus Online shopping is communicating with Credit card company using an API.
I understood this example. But whenever someone speaks about an API in a single App I confuse. Confusion is if app is single then to whom will it communicate to ?(In online shopping app it was communicating to a credit card app). Let's say I have a basic CRUD application(where we can Add student, update, retrieve and delete the student). Will it be an API? If yes then where?
I tried going through- What exactly is the meaning of an API?