Код: Выделить всё
public class SearchQuery
{
[JsonPropertyName("site")]
public string SiteName { get; set; }
}
Код: Выделить всё
https://example.com/search?site=sandbox
Код: Выделить всё
https://example.com/search?siteName=sandbox
Есть ли способ настроить имена свойств в параметрах запроса используя System.Text.Json.Serialization?
Подробнее здесь: https://stackoverflow.com/questions/784 ... gnored-for