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

Building awesome SDKs for your APIs: Best Pract...

Building awesome SDKs for your APIs: Best Practices

Alvaro Navarro

March 22, 2021
Tweet

More Decks by Alvaro Navarro

Other Decks in Programming

Transcript

  1. Motivation - Low quality code - Difficult to customize -

    Brand image - Faster time to market - Support new languages
  2. Motivation How do you select the language? - Know your

    user profile. - Most popular technologies.
  3. API mapping “ The SDK should use namespaced methods to

    create a match between the API and the SDK “
  4. Error handling “ The SDK should raise an error for

    any request that did not result a HTTP 200 or 201 response code “
  5. Release “ The SDK must use CI services to run

    tests and deploy using the official package managers “
  6. Write the specification MoSCoW method MUST - requirements that should

    not be deviated from at any cost. SHOULD - requirements that could be deviated from if needed. COULD - requirements that are desirable but not necessary.
  7. Conclusions - Having good SDKs is key for your API

    program but it is costly. - Define a common standard for your SDKs. - Start with something small without dependencies. - Pay attention to the Developer Experience.