Totally agree with the OP! Domain:port/api can get messy real quick if you don’t plan it out.
One thing I’d add is versioning. Always version your API endpoints (/api/v1/, /api/v2/, etc.). It saves so much headache when you need to make breaking changes later.
Also, tools like Postman are a lifesaver for testing and documenting your Domain:port/api.
One thing I’d add is versioning. Always version your API endpoints (/api/v1/, /api/v2/, etc.). It saves so much headache when you need to make breaking changes later.
Also, tools like Postman are a lifesaver for testing and documenting your Domain:port/api.
