Created
April 15, 2019 01:08
-
-
Save yuka1984/dd27c77742ee3d7b77d85f25114943b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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