Coding
Advertisements
Related Guides
| |
An API, or application programming interface, is a set of services that code offers to the outside world. Code includes inner details that are intended to be hidden from the world in order to make things simpler. An API offers services using a well defined contract that specifies required parameters and results. Generally speaking, all code that is intended to be reused is wrapped in an API.
ExampleAPIs are similar to user interfaces but for code. For example, a user interface might let a customer pay a bill by providing their authentication details, entering an amount, selecting a bill and pushing a few buttons. An API could be constructed with the same functionality. The API might require authentication and then allow a bill to be paid by providing data such as an amount and a billing account number.Complexity HidingAPIs allow complexity to be hidden so that coders don't need to understand every little detail of a program. If a coder needs to encrypt some data, they probably don't want to deal with the complexity of encryption algorithms. As such, an encryption API may provide a service that allows a programmer to encrypt something by passing in parameters such as a key and data to be encrypted.|
Type | Coding | Definition | A service that code offers via a well defined contract that specifies parameters and results. | Value | Hiding the complexity of code behind an easy to use interface. | Also Known As | Application programming interface | Related Concepts | CodingAlgorithmsComplexity HidingDeep Magic |
Coding
This is the complete list of articles we have written about coding.
If you enjoyed this page, please consider bookmarking Simplicable.
© 2010-2023 Simplicable. All Rights Reserved. Reproduction of materials found on this site, in any form, without explicit permission is prohibited.
View credits & copyrights or citation information for this page.
|