API
![]() | |
---|---|
academic discipline (en) ![]() ![]() ![]() | |
Bayanai | |
Ƙaramin ɓangare na |
computer interface (en) ![]() ![]() ![]() |
Amfani |
encapsulation (en) ![]() |
Facet of (en) ![]() |
computer science (en) ![]() |
Name (en) ![]() | Application Programming Interface |
Gajeren suna | API |
Filin aiki |
computer science (en) ![]() ![]() ![]() |
Amfani wajen | Furogirama |
A cikin aikace-aikacen gini, API yana sauƙaƙa shirye-shirye ta hanyar cire ainihin aiwatarwa da kuma fallasa abubuwa ko ayyukan da mai haɓakawa ke buƙata. Duk da yake ƙirar hoto don Abokin ciniki na imel na iya samar da mai amfani da maɓallin da ke aiwatar da duk matakai don ɗaukarwa da kuma haskaka sabbin imel, API don shigar da fayil / fitarwa na iya ba mai haɓakawa aiki da ke kwafin fayil daga wuri ɗaya zuwa wani ba tare da buƙatar mai haɓakawa ya fahimci ayyukan tsarin fayil ɗin da ke faruwa a bayan al'amuran ba.
![](https://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/API_C3D.png/220px-API_C3D.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/d/dc/WinAPI_Scheme.svg/220px-WinAPI_Scheme.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Database_management_system_diagram_from_1978_workshop.png/220px-Database_management_system_diagram_from_1978_workshop.png)
Ya bambanta da mai amfani, wanda ke haɗa kwamfuta zuwa mutum, aikace-aikacen shirye-shiryen aikace-aikace yana haɗa kwamfutoci ko ɓangarorin software zuwa juna. Ba a yi niyyar amfani da shi kai tsaye ta mutum (mai amfani na ƙarshe) ban da mai tsara shirye-shiryen kwamfuta wanda ke haɗa shi cikin software. API sau da yawa ya ƙunshi sassa daban-daban waɗanda ke aiki a matsayin kayan aiki ko ayyuka waɗanda ke samuwa ga mai tsarawa. Shirin ko mai tsara shirye-shiryen da ke amfani da ɗayan waɗannan ɓangarorin ana cewa yana kira wannan ɓangaren API. Kira da ke cikin API an kuma san su da subroutines, hanyoyi, buƙatun, ko ƙayyadaddun bayanai. Bayani na API ya bayyana waɗannan kira, ma'ana cewa yana bayyana yadda za a yi amfani da su ko aiwatarwa.
Akwai APIs don harsunan shirye-shirye, ɗakunan karatu na software, tsarin aiki na kwamfuta, da kayan aikin kwamfuta. APIs sun samo asali ne a cikin shekarun 1940, kodayake kalmar ba ta fito ba har zuwa shekarun 1960 da 1970. Amfani da kalmar API na zamani sau da yawa yana nufin API na yanar gizo, wanda ke ba da damar sadarwa tsakanin kwamfutocin da Intanet ta shiga. Abubuwan da suka faru a baya-bayan nan a cikin APIs sun haifar da hauhawar shahararren microservices, waɗanda ke da sabis da ba a haɗa su ba ta hanyar APIs na jama'a.
[2]
[3]
Ya kamata a canza APIs. Akwai dabarun fassara guda biyu:
Ƙarin dabarun canji: ana ƙara sabbin fasalulluka ba tare da canza waɗanda ke akwai ba. Duk wani sabuntawa dole ne ya dace da baya. Wannan dabarar ta dace da ƙananan ayyukan da ke da ƙarancin canji.
Shirye-shiryen fassarar bayyane: wannan dabarar tana ba da damar yin duk wani canji ciki har da karya canje-canje. Wannan dabarar ta dace da aikace-aikace masu rikitarwa da canje-canje masu rikitarwe
Manufar
[gyara sashe | gyara masomin]A cikin aikace-aikacen gini, API yana sauƙaƙa shirye-shirye ta hanyar cire ainihin aiwatarwa da kuma fallasa abubuwa ko ayyukan da mai haɓakawa ke buƙata. Duk da yake ƙirar hoto don Abokin ciniki na imel na iya samar da mai amfani da maɓallin da ke aiwatar da duk matakai don ɗaukarwa da kuma haskaka sabbin imel, API don shigar da fayil / fitarwa na iya ba mai haɓakawa aiki da ke kwafin fayil daga wuri ɗaya zuwa wani ba tare da buƙatar mai haɓakawa ya fahimci ayyukan tsarin fayil ɗin da ke faruwa a bayan al'amuran ba. [5]
Tarihin
[gyara sashe | gyara masomin]Kalmar API da farko ta bayyana dubawa ne kawai don shirye-shiryen mai amfani na ƙarshe, wanda aka sani da shirye-shirye na aikace-aikace. Wannan asalin har yanzu yana nunawa a cikin sunan "tsarin shirye-shiryen aikace-aikace. " A yau, kalmar ta fi girma, gami da software mai amfani har ma da kayan aiki kayan aiki. [6]
- ↑ [edit source] ^ Reddy, Martin (2011). API Design for C++. Elsevier Science. p. 1. ISBN 9780123850041. Archived from the original on 2023-04-15. Retrieved 2023-03-21.
- ↑ Lane, Kin (October 10, 2019). "Intro to APIs: History of APIs". Postman. Archived from the original on September 11, 2020. Retrieved September 18, 2020. When you hear the acronym "API" or its expanded version "Application Programming Interface", it is almost always in reference to our modern approach, in that we use HTTP to provide access to machine readable data in a JSON or XML format, often simply referred to as "web APIs." APIs have been around almost as long as computing, but modern web APIs began taking shape in the early 2000s.
- ↑ Wood, Laura (2021-08-25). "Global Cloud Microservices Market (2021 to 2026)". businesswire.com. Archived from the original on 2022-04-08. Retrieved 2022-03-29.
- ↑ Designing Web APIs Building APIs That Developers Love. O'Reilly Media. 2018. ISBN 9781492026877.
- ↑ Clarke, Steven (2004). "Measuring API Usability". Dr. Dobb's. Archived from the original on 3 March 2022. Retrieved 29 July 2016.
- ↑ Bloch, Joshua (August 8, 2018). A Brief, Opinionated History of the API (Speech). QCon. San Francisco: InfoQ. Archived from the original on September 22, 2020. Retrieved September 18, 2020