I think it depends on the nature and complexity of the REST API. In the articles, I've laid out the few approaches. For simpler APIs I'd go with either using path param approach or using the request headers.
Thanks for the answer :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.