Namespace Microsoft.AspNetCore.Mvc
FromBody
Controller
1 | [ ] |
Postman collection -> Body, Raw, Json
1 | { |
FromForm
Controller
1 | [ ] |
Postman collection -> Body, form-data
1 | KEY VALUE |
FromRoute
Controller
1 | [ ] |
Postman collection -> PUT
1 | http://localhost:5000/foo/{{sweetId}}/bar/{{id}} |
FromQuery
1 | public async Task<ActionResult<List<Artist>>> SearchArtist([FromQuery(Name = "q")] string searchOn) |
Postman collection -> GET
1 | KEY VALUE |