Skip to content

Instantly share code, notes, and snippets.

@yuka1984
Created April 15, 2019 00:57
Show Gist options
  • Save yuka1984/7f46adc8f0957722051edbbe05030a41 to your computer and use it in GitHub Desktop.
Save yuka1984/7f46adc8f0957722051edbbe05030a41 to your computer and use it in GitHub Desktop.
[ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(ProductModel[]))]
[ProducesResponseType((int)HttpStatusCode.InternalServerError, Type = typeof(Error))]
[FunctionName("Api_GetItems")]
public async Task<IActionResult> GetItems(
[HttpTrigger(AuthorizationLevel.Function, "get", "product")]HttpRequest request)
{
return new OkObjectResult(new List<ProductModel>());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment