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

Battle tested API design - Laracon EU Online

Battle tested API design - Laracon EU Online

Johannes Pichler

May 20, 2020
Tweet

More Decks by Johannes Pichler

Other Decks in Programming

Transcript

  1. Steps for building your API Design • Requirements & Planning

    • Implementa4on • Verifica4on & Maintenance
  2. Rou$ng - API Versioning • frequency of endpoint changes •

    handling of breaking changes • use seman8c versioning • use only major version in URLs
  3. Response format • no custom response format • use a

    defined standard • JSON:API • HAL
  4. API Specifica,on • use an API client like Stoplight Studio

    or Postman • define your endpoints with edge cases • make your specifica;on testable
  5. Verifica(on • it's all about metrics • have useful error

    logging in place • verify your assump7ons during development
  6. Maintenance • be careful with breaking changes • s3ck to

    seman3c versioning • keep your API specifica3on up to date