SlideShare une entreprise Scribd logo
Swagger / JS Meetup 5 mars 2015
©EPFL
Qui êtes vous ?
→ Qui crée des APIs ?
→ Qui consomme des API
→ Combien d’API avez vous utilisées
aujourd’hui ?
Pierre-André Vullioud
watchful.li CTO
Owner of inetis.ch
Joomla enthusiast
@pavullioud
APIs in 2015
source : www.programmableweb.com/api-research
Amazon
→ All teams will expose their data and functionality
through API.
→ There will be no other form of interprocess
communication [..]
→ Anyone who doesn't do this will be fired.
Amazon policy set by Jeff Bezos in 2003
http://apievangelist.com/2012/01/12/the-secret-to-amazons-success-internal-apis/
API centric architecture
→ Internal use
→ Apps
→ Clients
→ Partners
Data
API
Functionality
app
partners
services
Swagger
Language pour décrire des API REST
http://swagger.io/
Description de votre API
JSON
Technologie agnostique
Accélère le développement
Documentation
https://watchful.li/apidoc-v1/index.html
SDK Generator
https://github.com/swagger-api/swagger-codegen
Javascript
Javascript Class
https://github.com/wcandillon/swagger-js-codegen
Générer dynamiquement un client en Javascript
https://github.com/swagger-api/swagger-js
Client dynamique
var swagger = new client.SwaggerClient({
url: 'http://petstore.swagger.wordnik.com/v2/swagger.json',
success: function() {
swagger.apis.pet.getPetById({petId:1});
}
});
Editeur
http://editor.swagger.io/#/
Générer le code
→ avec l’éditeur
→ parser le code source
Exemple PHP
https://github.com/zircote/swagger-php/
Questions ?

Contenu connexe

PDF
Presentation swagger
PPTX
Swagger pour documenter votre REST API - présentation en français
PDF
Développement : mettez le turbo ! - Liferay France Symposium 2017
PDF
Proposition forge agile 1.0
PPTX
Angular2 / Typescript symposium Versusmind
PPTX
Collab Montréal 2016 - SharePoint Framework : De A à Z
PDF
Symposium n°7 : Plateforme Meteor
PPTX
APIs dans Azure : serverless ou pas serverless?
Presentation swagger
Swagger pour documenter votre REST API - présentation en français
Développement : mettez le turbo ! - Liferay France Symposium 2017
Proposition forge agile 1.0
Angular2 / Typescript symposium Versusmind
Collab Montréal 2016 - SharePoint Framework : De A à Z
Symposium n°7 : Plateforme Meteor
APIs dans Azure : serverless ou pas serverless?

Tendances (20)

PDF
DevOps - from idea to production
PDF
Azure Api management
PDF
iOSアプリケーションアーキテクチャ選定の鍵を探す
PDF
How javascript core helped PAW to move from a small app to an extensible tool
PPTX
Api gateway
PDF
Code flow - Cocoaheads paris
PDF
Meetup - Construire des applications serverless avec Azure
PDF
REX react native
PDF
Gestion des APIs avec Azure API Management - Samir AREZKI
PDF
Investir sur son API web (in French)
PDF
A la découverte d'Azure Logic App
PPT
Introduction à Vaadin
PDF
Native script
PDF
CocoaHeads Rennes #14: Programmation Responsive par Celedev
PPTX
Votre première App SharePoint pour Office 365 avec Visual Studio !
PDF
Être productif avec JHipster - Devoxx France 2017
PDF
Non-regression testing in web app development
PPTX
Comparatif des frameworks js mv
PPTX
Integration Summit 16 - Azure Logic App, bonnes pratiques et industrialisatio...
PPTX
Asp.Net Web.API, SignalR et UX : le futur
DevOps - from idea to production
Azure Api management
iOSアプリケーションアーキテクチャ選定の鍵を探す
How javascript core helped PAW to move from a small app to an extensible tool
Api gateway
Code flow - Cocoaheads paris
Meetup - Construire des applications serverless avec Azure
REX react native
Gestion des APIs avec Azure API Management - Samir AREZKI
Investir sur son API web (in French)
A la découverte d'Azure Logic App
Introduction à Vaadin
Native script
CocoaHeads Rennes #14: Programmation Responsive par Celedev
Votre première App SharePoint pour Office 365 avec Visual Studio !
Être productif avec JHipster - Devoxx France 2017
Non-regression testing in web app development
Comparatif des frameworks js mv
Integration Summit 16 - Azure Logic App, bonnes pratiques et industrialisatio...
Asp.Net Web.API, SignalR et UX : le futur
Publicité

Swagger, language pour décrire des API REST