Introduction to APIs

API Course Politecnico di Milano

Erik Wilde , API Academy, CA Technologies
March 28, 2018

Creative Commons License [http://creativecommons.org/licenses/by/3.0/]

This work is licensed under a CC
Attribution 3.0 Unported License
[http://creativecommons.org/licenses/by/3.0/]

Contents Erik Wilde : Introduction to APIs

Contents

Introduction

Outline (Introduction)

  1. Introduction [4]
  2. APIs from 50,000 feet [3]
  3. APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle [5]
  4. Why APIs? [3]
  5. Why Microservices? [4]
  6. Conclusions [2]
Introduction Erik Wilde : Introduction to APIs

(3) @dret on Twitter/GitHub

dret

Introduction Erik Wilde : Introduction to APIs

(4) API Academy [http://www.apiacademy.co/]

API Academy

Introduction Erik Wilde : Introduction to APIs

(5) Microservice Architecture

Microservice Architecture: Aligning Principles, Practices, and Culture

Introduction Erik Wilde : Introduction to APIs

(6) About Me



APIs from 50,000 feet

Outline (APIs from 50,000 feet)

  1. Introduction [4]
  2. APIs from 50,000 feet [3]
  3. APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle [5]
  4. Why APIs? [3]
  5. Why Microservices? [4]
  6. Conclusions [2]
APIs from 50,000 feet Erik Wilde : Introduction to APIs

(8) APIs are Languages



APIs from 50,000 feet Erik Wilde : Introduction to APIs

(9) APIs: Who's Talking?



APIs from 50,000 feet Erik Wilde : Introduction to APIs

(10) APIs are a Pattern

Uniform interface Self-describing representations and stateless interactions


APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle

Outline (APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle)

  1. Introduction [4]
  2. APIs from 50,000 feet [3]
  3. APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle [5]
  4. Why APIs? [3]
  5. Why Microservices? [4]
  6. Conclusions [2]
APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle Erik Wilde : Introduction to APIs

(12) API Driver #1: Push



APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle Erik Wilde : Introduction to APIs

(13) API Driver #2: Pull



APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle Erik Wilde : Introduction to APIs

(14) API Driver #3: Follow



APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle Erik Wilde : Introduction to APIs

(15) Two Views of API Scope/Focus



APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle Erik Wilde : Introduction to APIs

(16) One Management Lifecycle

API Lifecycle

Why APIs?

Outline (Why APIs?)

  1. Introduction [4]
  2. APIs from 50,000 feet [3]
  3. APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle [5]
  4. Why APIs? [3]
  5. Why Microservices? [4]
  6. Conclusions [2]
Why APIs? Erik Wilde : Introduction to APIs

(18) The Wonders of APIs

API Cargo Cult

Why APIs? Erik Wilde : Introduction to APIs

(19) Two Perspectives of API Scope/Focus



Why APIs? Erik Wilde : Introduction to APIs

(20) APIs Serve a Purpose

Do not try to find the right business model for your APIs; instead, try to find the right APIs for your business model.

Mehdi Medjaoui [http://www.apiacademy.co/team_member/mehdi-medjaoui/]: [http://twitter.com/medjawii]



Why Microservices?

Outline (Why Microservices?)

  1. Introduction [4]
  2. APIs from 50,000 feet [3]
  3. APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle [5]
  4. Why APIs? [3]
  5. Why Microservices? [4]
  6. Conclusions [2]
Why Microservices? Erik Wilde : Introduction to APIs

(22) The Web Works



Why Microservices? Erik Wilde : Introduction to APIs

(23) The Web, Industrialized



Why Microservices? Erik Wilde : Introduction to APIs

(24) Microservices Cargo Cult

Microservices Cargo Cult

Why Microservices? Erik Wilde : Introduction to APIs

(25) Separating the What from the How



Conclusions

Outline (Conclusions)

  1. Introduction [4]
  2. APIs from 50,000 feet [3]
  3. APIs: 3 Drivers, 2 Perspectives, 1 Lifecycle [5]
  4. Why APIs? [3]
  5. Why Microservices? [4]
  6. Conclusions [2]
Conclusions Erik Wilde : Introduction to APIs

(27) Transformation is a Process



Conclusions Erik Wilde : Introduction to APIs

(28) Thanks! Q&A

What's Next?

March 28, 2018 API Course Politecnico di Milano