API Best Practices

API Best Practices

Rule 1: Don't have API endpoint calling another API endpoint if you can help it.  
Example 1: A web page of a website that has a button that calls to first API's endpoint that then calls another API's endpoint.
Reasons:  1) Call that second API directly since it is in control of that process.  2) Now you have doubled your failure points (servers, API interfaces that could change, security, etc.) for this process.  3) Obscuring the purpose for your first API by mixing in other API's purposes unless the first API is a clearing house or manager API.


Comments

Popular posts from this blog

Upgrading to .NET8 from desktop versions 4.8.X

GHL Chat Bots for Webpage

GHL > Set website so shorter URL address