REST API supporting both json and google protobuf formatted requests and responses