Skip to content

Instantly share code, notes, and snippets.

@uzbekdev1
Last active October 6, 2025 09:35
Show Gist options
  • Save uzbekdev1/5be5025ab0bd368db14ae6df0fac498e to your computer and use it in GitHub Desktop.
Save uzbekdev1/5be5025ab0bd368db14ae6df0fac498e to your computer and use it in GitHub Desktop.
action attributes
[HttpGet]
[ProducesDefaultResponseType(typeof(ApiResponse<List<NotificationItem>>))]
public async Task<IActionResult> Notifications(){}
[HttpPost("{productId}")]
[ProducesDefaultResponseType(typeof(ApiResponse))]
public async Task<IActionResult> PostFeedback([FromRoute] long productId, [FromBody] ProductPostFeedback model){}
[HttpPost]
[ProducesDefaultResponseType(typeof(ApiResponse))]
[UnlimitedFormSize]
public async Task<IActionResult> SubmitSupport([FromForm] HelpRequestForm model){}
[HttpGet]
[ProducesDefaultResponseType(typeof(ApiResponse<List<ProductItem>>))]
public async Task<IActionResult> MyProducts([FromQuery] MyProductTab? tab){}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment