how to implement header level API versioning in mendix API

Hello Expert's,   I want to implement header-level semantic versioning for Mendix rest API, which should return the current API version after a successful response in the header part of the API.  Does anyone have any idea about how to implement this in my APIs?   Below I have added the example from the previous application which is based on Java web services , the same thing I want to implement in Mendix APIs      Thank you in advance   Best Regards Pushpendra  
1 answers

I think that you can use the system.httpheader object for that purpose, see make sure to set the correct header key and value and this will be returned in the response