web:javascript:nodejs:swagger
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
web:javascript:nodejs:swagger [2021/01/07 22:51] – sgariepy | web:javascript:nodejs:swagger [2022/02/02 00:42] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Swagger ====== | ====== Swagger ====== | ||
- | Incorporer Swagger avec JSDoc dans un projet TypeScript. | + | Incorporer |
Ligne 82: | Ligne 82: | ||
| | ||
| | ||
- | | + | |
- | | + | |
+ | | ||
| | ||
| | ||
- | | ||
</ | </ | ||
Ligne 125: | Ligne 125: | ||
</ | </ | ||
+ | |||
+ | ===== Responses ===== | ||
+ | |||
+ | Response comme objet: | ||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | * definitions: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Réponse qui est une liste | ||
+ | |||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
===== Schemas ===== | ===== Schemas ===== | ||
Ligne 151: | Ligne 203: | ||
*/ | */ | ||
</ | </ | ||
+ | |||
+ | |||
+ | Schema Reference: | ||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Schema avec enum: | ||
+ | |||
+ | |||
+ | < | ||
+ | schema: | ||
+ | type: string | ||
+ | enum: [asc, desc] | ||
+ | |||
+ | </ | ||
+ | |||
Ligne 208: | Ligne 279: | ||
+ | ====== Sources ====== | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | Option avec JSON Spec: | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | Option avec YAML Spec: | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | Generateurs: | ||
+ | |||
+ | * [[https:// | ||
web/javascript/nodejs/swagger.1610056302.txt.gz · Dernière modification : 2022/02/02 00:43 (modification externe)