Skip to content

Instantly share code, notes, and snippets.

@yuka1984
Created April 15, 2019 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuka1984/dd27c77742ee3d7b77d85f25114943b0 to your computer and use it in GitHub Desktop.
Save yuka1984/dd27c77742ee3d7b77d85f25114943b0 to your computer and use it in GitHub Desktop.
[RequestHttpHeader("Idempotency-Key", isRequired: false)]
[RequestHttpHeader("Authorization", isRequired: true)]
[FunctionName("Api_AddItems")]
public async Task<IActionResult> Create(
[HttpTrigger(AuthorizationLevel.Function, "post", "product")]
[RequestBodyType(typeof(ProductCreateRequest), "product request")]HttpRequest request)
{
return new OkObjectResult(new ProductModel());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment