Код: Выделить всё
GET /{id}?expand=property1,property2
Код: Выделить всё
public Task GetAsync([FromRoute] string id, [FromQuery] Expandable expand)
Код: Выделить всё
[Flags]
[JsonConverter(typeof(StringEnumConverter))]
public enum Expandable
{
None = 0x0,
Property1= 0x1,
Property2 = 0x2,
Property3 = 0x3
}
Код: Выделить всё
{
"name": "$expand",
"in": "query",
"description": "",
"required": true,
"type": "string",
"default": "None",
"enum": [
"none",
"property1",
"property2",
"property3"
]
},
Подробнее здесь: https://stackoverflow.com/questions/561 ... n-swaggers
Мобильная версия