Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Des API web robustes avec les JSON Schemas
Search
Nicolas Chambrier
November 29, 2012
Programming
0
380
Des API web robustes avec les JSON Schemas
Retrouvez la démo sur Github :
https://github.com/naholyr/demo-json-schema
Nicolas Chambrier
November 29, 2012
Tweet
Share
More Decks by Nicolas Chambrier
See All by Nicolas Chambrier
BlendWebMix '14 - Streams Node.js
naholyr
1
130
Other Decks in Programming
See All in Programming
「2024年版 Kotlin サーバーサイドプログラミング実践開発」の補講 〜O/Rマッパー編〜
n_takehata
2
260
実用的かつリーズナブルな 「Azure × Gemini × LINE」~キャラクターBot 実装ライブデモ~
tomodo_ysys
1
170
Webエディタライブラリ 「CodeMirror」から学ぶ Webアプリ開発のテクニック
ryosukeigarashi
0
250
SDCon2024: Enabling DevOps and Team Topologies thru architecture: architecting for fast flow
cer
PRO
0
780
유연한 Composable 설계
l2hyunwoo
0
380
Activities at Cairo Library
cairolibrary720
0
1.2k
入社1ヶ月でここまでやった!Findy Toolsインフラ支援の最適化
rvirus0817
6
1.4k
Jetpack for KMP
fornewid
1
290
Terraformテスト入門
msato
0
540
生成AIをkintoneに連携してみた
hideg
0
230
Clean Architecture by TypeScript & NestJS
ryounasso
0
150
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
81k
Featured
See All Featured
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
105
6.8k
Building Your Own Lightsaber
phodgson
101
5.9k
The Straight Up "How To Draw Better" Workshop
denniskardys
229
130k
Mobile First: as difficult as doing things right
swwweet
219
8.8k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.4k
4 Signs Your Business is Dying
shpigford
178
21k
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
Creatively Recalculating Your Daily Design Routine
revolveconf
214
11k
Automating Front-end Workflow
addyosmani
1362
200k
Testing 201, or: Great Expectations
jmmastey
33
6.9k
The Invisible Side of Design
smashingmag
294
50k
Transcript
Des APIs Web Robustes Grâce aux JSON Schemas
Nicolas Chambrier (@naholyr) Expert technique, développeur PHP/Node Antoine Hérault (@Herzult)
Consultant développeur chez &
Bien plus qu'une application
XML
JSON
Equipe Mobile Equipe API Organisation
Description de l'API Méthodes Ressources
Ben les gars, restez sur XML, ya les outils pour
ça !
Les Schémas JSON
Les Schémas JSON : références … …
Génération de la DOC « A Node.js build tool for generating
HTML documentation from JSON schemas. » "npm is the new apt-get" ;) • Créer ses templates • " " • Done !
Validation Démo de validation en ligne de commande • Des
messages d'erreur clairs • Utiles à l'utilisateur et/ou à la machine
Et dans la vraie vie ? • Google API Discovery •
Composer configuration • Idées : ◦ Générer des formulaires depuis les schémas ◦ Offrir au client de quoi faire une vraie validation
Implémentations • Java • PHP • JavaScript • Python •
Ruby • … • Faire communiquer des services entre eux basés sur JSON Schema
HATEOAS Richardson Maturity Model
HATEOAS
Démo ! Validation côté client automatisée