Unable to customize URL

Open
#274 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
api, backend

Research direction

No file or test is named. Start by tracing WebAPiClientCore's URL parameter formatting and encoding, then compare the behavior with Refit's UrlParameterFormatter. Done means the library provides a way to customize object-to-string formatting and handles commas and semicolons in GET URLs without causing the reported 400 response.

Written by the indexing model from the issue text.

Description

question 等待反馈(needs feedback)

I have migrated my http communication from Refit to this library (WebAPiClientCore) in ny .NET MAUI (.NET 9) mobile app for android.
In Refit we were setting up the UrlParameterFormatter to our custom formatter in which we have converted the object types to string.

Now I can't find such option here in this library.

Also, I have some GET url which contains comma (,) or semi comma (;) but this library is encoding those and because of this, our the API we are calling is throwing 400 bad request.

How to tackle this problem?

Dominant language
C#
Stars
2.1k
Forks
445
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnetcore/WebApiClient

All issues in dotnetcore/WebApiClient

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.