72 lines
806 B
Markdown
72 lines
806 B
Markdown
|
# Le Web et les API
|
||
|
|
||
|
---
|
||
|
|
||
|
# Qu'est-ce qu'une API ?
|
||
|
|
||
|
---
|
||
|
|
||
|
# HTTP
|
||
|
|
||
|
## Cycle requête/réponse
|
||
|
## URL
|
||
|
## Structure d'une requête
|
||
|
## Structure d'une réponse
|
||
|
|
||
|
---
|
||
|
|
||
|
# Cycle requête/réponse
|
||
|
|
||
|
<div style="text-align:center; margin-top: 50px">
|
||
|
<img src="img/cycle.png" height="400px" />
|
||
|
</div>
|
||
|
|
||
|
---
|
||
|
|
||
|
# Structure d'une requête
|
||
|
|
||
|
|
||
|
<div style="text-align:center; margin-top: 50px">
|
||
|
<img src="img/request.png" height="400px" />
|
||
|
</div>
|
||
|
|
||
|
---
|
||
|
|
||
|
# Structure d'une réponse
|
||
|
|
||
|
<div style="text-align:center; margin-top: 50px">
|
||
|
<img src="img/response.png" height="400px" />
|
||
|
</div>
|
||
|
|
||
|
---
|
||
|
|
||
|
# Le format des données
|
||
|
|
||
|
---
|
||
|
|
||
|
# Les protocoles applicatifs
|
||
|
|
||
|
---
|
||
|
|
||
|
# REST
|
||
|
|
||
|
---
|
||
|
|
||
|
# JSON-RPC2
|
||
|
|
||
|
---
|
||
|
|
||
|
# SOAP
|
||
|
|
||
|
---
|
||
|
|
||
|
# GraphQL
|
||
|
|
||
|
---
|
||
|
|
||
|
# API et authentification
|
||
|
|
||
|
## HTTP Basic
|
||
|
## API Key + Secret (Amazon Scheme)
|
||
|
## OAuth2 (OpenId Connect, JWT)
|