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
360
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
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
330
OpenTelemetry のサービスという概念について
azukiazusa1
2
1.1k
Ruby Pattern Matching
bkuhlmann
0
920
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.6k
try! Swift Tokyo 初参加報告LT
hinakko2
0
190
Folding Cheat Sheet #3
philipschwarz
PRO
0
110
From Spring Boot 2 to Spring Boot 3 with Java 22 and Jakarta EE
ivargrimstad
0
850
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
210
VSCodeでのDatabricks開発もお勧めしたい/I would also recommend Databricks development with VSCode.
kazumain
0
230
Micro Frontends for Java Microservices - Devnexus 2024
mraible
PRO
0
410
What We Can Learn From OSS
inouehi
0
390
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
190
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
118
38k
Embracing the Ebb and Flow
colly
78
4.1k
Debugging Ruby Performance
tmm1
69
11k
Building Your Own Lightsaber
phodgson
97
5.7k
Scaling GitHub
holman
457
140k
Unsuck your backbone
ammeep
662
57k
Become a Pro
speakerdeck
PRO
9
4.5k
How GitHub Uses GitHub to Build GitHub
holman
468
290k
Building Applications with DynamoDB
mza
88
5.6k
Pencils Down: Stop Designing & Start Developing
hursman
116
11k
What's in a price? How to price your products and services
michaelherold
237
11k
Fireside Chat
paigeccino
19
2.6k
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