Upgrade to Pro — share decks privately, control downloads, hide ads and more …

API Design with Apiary 2

Z
May 26, 2016

API Design with Apiary 2

Z

May 26, 2016
Tweet

More Decks by Z

Other Decks in Programming

Transcript

  1. 4 STAGES OF API DESIGN 1 2 3 4 By-product

    Generated Docs Design-first Design Consistency
  2. API DESCRIPTION • API Blueprint • OpenAPI Specification (Swagger) •

    Others (RAML, WADL, WSDL, Email, Word document)
  3. API DESIGN API Description • Contract • Product Owner •

    Backed Developers • Customers • Tech Writers
  4. API PROTOTYPING • Automatically generated • Driven by contract •

    First-moment of truth • Enables client development Mock Server
  5. API CALL DEBUGGER Call Debugger • Introspect calls • Diff

    real vs. expected • Driven by contract
  6. 1 PREPA RATIO N API FLOW D ESIG N D

    EVELO PM EN T D ELIVERY C O N SU M PTIO N A N A LYSIS 2 3 4 5 6
  7. 1 PREPA RATIO N API FLOW D ESIG N &

    PRO TO TYPE D EVELO PM EN T D ELIVERY C O N SU M PTIO N A N A LYSIS 2 3 4 5 6
  8. MIND SHIFT • Describe resource NOT representation • Define domain

    semantics • Reuse common semantics • Do NOT focus on technical details • URIs • representations • schema validations
  9. API ISN’T… • API is not pretty URLs • API

    is not HTTP Verbs • API is not CRUD • API is not JSON
  10. REST ARCHITECTURAL STYLE • Client–server • Stateless • Cacheable •

    Layered system • Code on Demand (optional) • Uniform Interface • Identification of resources • Manipulation through representations • Self-descriptive messages • Hypermedia as the engine of the application state