Best practice when you write an API

Best practice when you write an API Some of the points to consider while writing an API: Should be Simple. Should be Intuitive. Example: /users/{id}/card-number instead of /users/{id}/pin Should always be consistent. Should avoid camel cases. The normal is to use lower case…