FazBrowse Wikipedia Viewer | Main Page |
Search Wikipedia:
|
Viewing: https://fr.wikipedia.org/wiki/API_Web

API Web — Wikipédia

Capture d'écran de la documentation de l'API Web de la NASA

Une API Web est une interface de programmation d'application (API) pour un serveur Web ou un navigateur Web. En tant que concept de développement Web, il peut être lié au côté client d'une application Web (y compris à travers un framework web).

{ "date":"1996-12-03", "explanation":"Like a butterfly,\r a white dwarf star begins its life\r by casting off a cocoon that enclosed its former self. In this\r analogy, however, the Sun would be\r a caterpillar\r and the ejected shell of gas would become the prettiest of all!\r The above cocoon, the planetary nebula\r designated NGC 2440, contains one of the hottest white dwarf stars known.\r The white dwarf can be seen as the bright dot near the photo's\r center. Our Sun will eventually become a \"white dwarf butterfly\",\r but not for another 5 billion years. The above false color image recently entered the public domain\r and was post-processed by F. Hamilton.\r", "hdurl":"https://apod.nasa.gov/apod/image/9612/ngc2440_hst2_big.jpg", "media_type":"image", "service_version":"v1", "title":"Cocoon of a New White Dwarf\r\nCredit:", "url":"https://apod.nasa.gov/apod/image/9612/ngc2440_hst2.jpg" }

Le retour d'API ci-dessus a été reformaté afin que les noms des éléments de données JSON, appelés clés, apparaissent au début de chaque ligne. La dernière de ces clés, nommée url, indique une URL qui pointe vers une photographie :

https://apod.nasa.gov/apod/image/9612/ngc2440_hst2.jpg

En suivant l'URL ci-dessus, un utilisateur de navigateur Web verrait cette photo :

  1. ↑ (en-US) « What is mash-up? - Definition from WhatIs.com », WhatIs.com (consulté le 4 novembre 2015)
  2. ↑ « API Directory », ProgrammableWeb (consulté le 3 novembre 2015)
  3. ↑ « APIs.io - the API search engine », apis.io (consulté le 14 mars 2016)So make it clearly understandable & share your knowledge.
  4. ↑ « Astronomy Picture of the Day », NASA APIs

Bibliographie

modifiermodifier le code