Pavan Yara

Notes on API Practices

TechniqueTreat customers with disdainShow customers love
1Don’t have an APIHave an API
2Make signups difficult, users must justify their requestSelf-service onboarding
3Exorbitant fees for the privilege of API accessEnable API access for free or as part of an “enterprise-level” package
4API documentation behind login page or otherwise hidden from search enginesAPI documentation freely accessible and referenced by public search engines
5Use a proprietary or terrible protocolUse an industry-standard protocol such as JSON:API or gRPC (https://grpc.io)
6Permit only one API keyPermit multiple API keys for each rotation
7Tempt fate by maintaining documentation manuallyKeep documentation in sync with code using automated systems such as Swagger or gRPC
8Ignore the infrastructure as code (IaC) revolutionMake IaC a top priority: Provide officially supported modules for Terraform, Chef, Puppet, Chocolatey, and similar systems
9Design APIs to be non-idempotent whenever possibleDesign APIs to be idempotent whenever possible

#api #best-practices #tech

Keep reading