Menene API ke tsaye? Da Sauran Qananan kalmomin: SAURARA, SABULU, XML, JSON, WSDL

Menene API ya tsaya

Lokacin da kake amfani da mai bincike, burauzarka ta buƙaci daga uwar garken abokan ciniki kuma uwar garken tana aika fayilolin da mai bincikenka ya tattara kuma ya nuna shafin yanar gizo tare da. Amma idan kuna son sabarku ko shafin yanar gizonku suyi magana da wani sabar? Wannan zai buƙaci ka shirya lambar zuwa API.

Mene ne API tsaya don?

API anayinta ne na gajarta Faceaddamar da Tsarin Farfajiyar aikace-aikacen kwamfuta. An API wani tsari ne na yau da kullun, ladabi, da kayan aiki don haɓaka ayyukan yanar gizo da aikace-aikacen tafi-da-gidanka. Da API ƙayyade yadda zaka iya tantancewa (na zaɓi), nema da karɓar bayanai daga API uwar garken.

Menene API?

Lokacin amfani dashi a cikin yanayin cigaban yanar gizo, an API galibi ƙayyadadden saƙo ne na saƙonnin Canza wurin Saƙon Hirar Hypertext (HTTP), tare da ma'anar tsarin saƙonnin amsawa. APIs na Gidan yanar gizo suna ba da izinin haɗuwa da ayyuka da yawa cikin sabbin aikace-aikace da aka sani da mashups.wikipedia

Bayanin Bidiyo na Me APIs ke yi

Akwai manyan ladabi guda biyu yayin haɓaka API. Yaren shirye-shiryen yau da kullun kamar Microsoft .NET da masu haɓaka Java galibi sun fi son SOAP amma sanannen yarjejeniya ita ce REST. Yawa kamar kun buga adireshi a cikin mai bincike don samun amsa, lambar ku ta ba da buƙata ga wani API - a zahiri hanya akan sabar da ke tabbatarwa da kuma amsawa daidai da bayanan da kuka nema. Amsoshi don SOAP suna amsawa tare da XML, wanda yayi kama da HTML sosai - lambar da mai binciken ku yayi amfani da ita.

Idan kuna son gwada APIs ba tare da rubuta layi na lambar ba, DHC yana da girma Aikace-aikacen Chrome don hulɗa tare da APIs da ganin amsoshin su.

Menene Acronym SDK yake tsayawa?

SDK an gajeren suna ne Kit ɗin Mai haɓaka Software.

Lokacin da kamfani ya buga API ɗin su, yawanci akwai takaddun rakiyar da ke nuna yadda API gaskatawa, yadda za a iya tambaya, da kuma menene amsoshin da suka dace. Don taimakawa masu haɓakawa farawa, kamfanoni galibi suna buga wani Kit ɗin Mai haɓaka Software don haɗa aji ko ayyukan da ake buƙata cikin sauƙi cikin ayyukan da mai haɓaka ke rubutawa.

Menene Acronym XML yake tsaye?

XML shine acronym don eXtensible Markup Language. XML yare ne na amfani wanda aka yi amfani dashi wajen sanya bayanai a cikin wani tsari wanda zai iya karantawa mutum kuma mai iya karanta shi.

Ga misalin yadda XML ya bayyana:

<?xml sigar ="1.0"?>
<product id ="1">
Samfurin A
Na farko samfurin

5.00
kowane

Menene Acronym JSON yake tsaye?

JSON an rage sunan shi Bayanan Gidan Jagora. JSON tsari ne na tsara bayanai wanda ake turawa gaba da gaba ta hanyar API. JSON shine madadin XML. REST APIs sunfi yawan amsawa tare da JSON - madaidaicin tsari wanda yake amfani da rubutu mai saurin karanta mutane don watsa abubuwa na bayanai wadanda suka kunshi nau'ikan nau'ikan dabi'u.

Ga misalin bayanan da ke sama ta amfani da JSON:

{
"id": 1,
"Title": "Samfurin A",
"bayanin": "Na farko samfurin",
"farashi": {
"adadin": "5.00",
"ta": "kowane"
}
}

Me ake kira Acronym REST?

REST wani jimla ne na Canjin Canjin Jiha salon gini don tsarin hypermedia da aka rarraba. Don haka mai suna Roy Thomas Fielding

Whew… zurfin numfashi! Kuna iya karanta duka takaddar nan, wanda ake kira da Style Architectural Styles da kuma Design na Network-based Software Architectures da aka gabatar cikin gamsuwa ta bangaren bukatun da ake buƙata na matakin DOCTOR OF PHILOSOPHY in Information and Computer Science by Roy Thomas Fielding.

Na gode Dr. Fielding! Kara karantawa game da sauran a Wikipedia.

Menene Acronym SOAP yake nufi?

SOAP gajerun kalmomi ne na Yarjejeniyar Samun Abu Mai Sauƙi

Ni ba dan shirye-shirye bane, amma a ganina masu kirkirar son SOAP suna yin hakan ne saboda a sauƙaƙe suna iya inganta lambar a cikin daidaitaccen tsarin shirye-shiryen da ke karanta Fayil ɗin Ma'anar Sabis ɗin Yanar Gizo (WSDL). Ba sa buƙatar yin bayani game da amsar, an riga an kammala ta ta amfani da WSDL. SOAP na buƙatar envelope na shirye-shirye, wanda ke bayyana tsarin saƙo da yadda ake aiwatar da shi, saitin dokokin ɓoyayyiyar hanya don bayyana lokuttan bayanan bayanan aikace-aikace da kuma babban taro don wakiltar kira da amsa martani.

5 Comments

  1. 1
  2. 2
  3. 3
  4. 4

    A ƙarshe (a ƙarshe!) Takaitaccen bayani game da abin da duka waɗannan maganganun da ke da ban tsoro a baya suke nufi. Na gode da yin amfani da harshe mai haske kai tsaye, sakamako = makomar da ta ɗan haske sosai ga wannan ɗalibin ɗalibin.

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.