reactiveui / refit

The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface.
https://reactiveui.github.io/refit/
MIT License
8.41k stars 742 forks source link

Question for unusual request #1339

Open christmas96 opened 2 years ago

christmas96 commented 2 years ago

Is it possible to setup Refit to making request in a such way: [Post("/s1services?{service:{service},username:{username},password:{password},appId:{appId}}")]

API service from client, so we can't cahnge it, need to work with what they creates

james-s-tayler commented 2 years ago

Have you tried this https://github.com/reactiveui/refit#unescape-querystring-parameters?

GitHub
GitHub - reactiveui/refit: The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface.
The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface. - GitHub - reactiveui/refit...