I need to come up with best practices for API development where we have more than 100 endpoints to be developed and each endpoint need to have below mentioned properties which are common to be passed as request to the server
- Every request must have language-code (en-us or en-ca), division (hr or finance) and country (US or CANADA) parameters
- Two versions of apis needs to be created for web(v1) & ipad(v2)
Would like to know what is the best way to frame the api urls by taking above 2 points into considerations
I am planing to do the versioning mentioned below, but confused how to incorporate the above mentioned 2 points in the request (request params or through headers or in the request body itself)
app/v1/api/url
app/v2/api/url