servicestack turn off metadata

Hi Guys,

In this brief post I am going to show you how to disable or turn off metadata completely.

The main configuration is made in the app host Configure method. I believe you have access to that CS file. in your configure method add this line

 

EnableFeatures = Feature.Csv | Feature.CustomFormat | Feature.Html | Feature.Json | Feature.Markdown , // you can add more features here but don't add metadata, I have enable few because I need those. This can be done another way but I find this method clear

 

So my Configure method looked like this

I hope this helps

Cheers,

Advertisement

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply