2
我使用Refit for RestAPI。 我需要創建查詢字符串相同api/item?c[]=14&c[]=74
如何在Refit中禁用urlencoding get-params?
在改裝界面我創建方法
[Get("/item")]
Task<TendersResponse> GetTenders([AliasAs("c")]List<string> categories=null);
,創造CustomParameterFormatter
string query = string.Join("&c[]=", values);
CustomParameterFormatter生成的字符串14&c[]=74
但改裝編碼參數,生成的URL api/item?c%5B%5D=14%26c%5B%5D%3D74
如何禁用此功能?