![]() That's all we have for now but let's be a little stingy with access to the quotes. Start up your server if it’s not running. The order information may look like this: Run the App The generally accepted format is JSON (JavaScript Object Notation). The data has to be represented in a format that both the app and the server will understand, just the way the menu is written in a specific language you and the waiter understand so he can place the right order for you at the kitchen. The online store's API takes the order information and sends it to the server to process the order, then returns a response, notifying you whether it was successful or not. Say you just placed an order for a MacBook from an online store. In computing, APIs take the request from the user of an app (web client, mobile app, etc.) to get or send a resource. Well, before APIs, clients interacted with the data store directly, which had lots of downsides to it the biggest of which was the lack of security. You don’t want to be caught up in that mess. I believe you know how messy and inconvenient that can get, lots of customers barking their orders, each struggling to get attention. Take a look at cheap restaurants, where there are no waiters, no menu, you just walk straight to the kitchen to get your meal. The waiter takes your order, goes to the kitchen to process your order and comes back with the meal. ![]() You go to your favorite classy restaurant to buy food, you have to place your order ( make a request ) right? Someone walks up to you with list of meals available, the waiter ( API ). The magnificent, “Application Programming Interface” or API, highly exalted in the previous definitions above is simply a messenger.
0 Comments
Leave a Reply. |