Slide 1

Slide 1 text

Créer des API REST en Java avec une approche API-First : Mise en pratique et retours d'expérience Alexandre TOURET

Slide 2

Slide 2 text

Alexandre TOURET Architecte logiciel @touret.info blog.touret.info alexandre-touret Qui suis-je?

Slide 3

Slide 3 text

We design payments technology that powers the growth of millions of businesses around the world. 7000+ engineers in over 40 countries Managing 43+ billion transactions per year €250M spent in R&D every year Handling 150+ payment methods #1 European payment processor

Slide 4

Slide 4 text

Le workshop

Slide 5

Slide 5 text

Pré-requis github.com

Slide 6

Slide 6 text

https://blog.touret.info/api-first-workshop/ https://github.com/alexandre-touret/api-first-workshop Le workshop

Slide 7

Slide 7 text

Code-First vs API-First

Slide 8

Slide 8 text

Création de l’API • Spécifications • Création des controllers Java Documentation via des annotations • SpringDoc • Microprofile OpenAPI Génération de l’OPENAPI Code First

Slide 9

Slide 9 text

Création de l’API • Création d’un fichier de description OPENAPI qui sert de spécification Génération du code • Héritage pour specifier le code spécifique des controllers • Validation du contrat de service par la compilation Construction des livrables API First

Slide 10

Slide 10 text

Les limites du “Code First” ? Points négatifs • Les fichiers OpenAPI générés peuvent ne pas être valides • Nécessite un grand nombre d’annotations à ajouter • Définir une API en avance de phase peut être fastidieux Points positifs • La mise en oeuvre est simple pour des “petites” APIs

Slide 11

Slide 11 text

Guitar Heaven

Slide 12

Slide 12 text

Guitar Heaven Pro ides an API to mana e uitar sto Orders & uotes

Slide 13

Slide 13 text

Guitar Heaven

Slide 14

Slide 14 text

Don’t be a stran er! Follow & get in touch blog.worldline.tech @WorldlineTech Follow our tech team: Follow me: linkedin.com/in/atouret 14 | Feedback @touret.info

Slide 15

Slide 15 text

Explore our jobs in tech: careers.worldline.com Want to shape how the world pays and get paid?