Hi All,
Need help on Rest Webservices thoughts. I am using Gorilla toolkit for designing REST API.
Previously in Java/Python world I have designed below approaches for common validations (Authentication, Logger, Content-Type, Return-Type, Roles) for any service method invocations.
- Authentication - X-Auth-Token reading from the header and validating the token then routing to approapriate service method in python or java.
- Similarly Logger, Request format, Return type validations as well.
How to achieve this in Go with Gorilla, since Java/Python are object oriented will be invoked as the base class constructor.
Please suggest your thoughts in this regard.
Thanks
Swaroop