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
440
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
AIと人間の共創開発!OSSで試行錯誤した開発スタイル
mae616
2
790
Writing Better Go: Lessons from 10 Code Reviews
konradreiche
3
6.2k
スマホから Youtube Shortsを見られないようにする
lemolatoon
27
34k
タスクの特性や不確実性に応じた最適な作業スタイルの選択(ペアプロ・モブプロ・ソロプロ)と実践 / Optimal Work Style Selection: Pair, Mob, or Solo Programming.
honyanya
3
190
SODA - FACT BOOK(JP)
sodainc
1
8.6k
React Nativeならぬ"Vue Native"が実現するかも?_新世代マルチプラットフォーム開発フレームワークのLynxとLynxのVue.js対応を追ってみよう_Vue Lynx
yut0naga1_fa
2
460
その面倒な作業、「Dart」にやらせませんか? Flutter開発者のための業務効率化
yordgenome03
1
140
CSC509 Lecture 08
javiergs
PRO
0
240
Go言語はstack overflowの夢を見るか?
logica0419
0
520
Vueのバリデーション、結局どれを選べばいい? ― 自作バリデーションの限界と、脱却までの道のり ― / Which Vue Validation Library Should We Really Use? The Limits of Self-Made Validation and How I Finally Moved On
neginasu
2
1.3k
CSC305 Lecture 10
javiergs
PRO
0
230
kiroとCodexで最高のSpec駆動開発を!!数時間で web3ネイティブなミニゲームを作ってみたよ!
mashharuki
0
880
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
526
40k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
BBQ
matthewcrist
89
9.8k
4 Signs Your Business is Dying
shpigford
185
22k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.2k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
253
22k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
How to Ace a Technical Interview
jacobian
280
24k
Automating Front-end Workflow
addyosmani
1371
200k
Product Roadmaps are Hard
iamctodd
PRO
55
11k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
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