Do you mean keep/store the records you're sending through Swagger? I'm not sure if Swagger allows you to do that, but I'm sure you could do something similar with postman, I know it has some scripting capabilities built in but I haven't used them myself.
@@rowan-lea I mean being able to produce a swagger.json with a with endpoints without decorating each function endpoint by using the xml of the build dll
@@ericn6463 ahhh I see. It's not something I've ever come across I'm afraid, but it doesn't mean there isn't anything out there. Perhaps there's a third party/open source solution for that.
From this video ua-cam.com/video/LZBD-ZAKZ0g/v-deo.htmlsi=OBddpkNjEl3alxh2 you can see swagger has been generated automatically on a web api with adding attributes watch from 7:44. I wanted to know if this was possible with a functions app
@@ericn6463ah I see! Yes you should be able to, this document explains it better than I could, but you need to create a startup class that inherits from FunctionsStartup to achieve it: www.c-sharpcorner.com/article/how-to-configure-swagger-in-azure-functions-apis/
Great video 2 mins later and my project is ready to go !
Would love to know how to do this in Java, but I understand that would be quite a bit more complicated.
Great job. Thank you.
You're welcome! Glad you liked it :D
Hey, that's my son's name, Rowan lol.
Great tutorial!
Hey! Glad you liked it!
Very useful video. I have a question, how could I add the option to have a file upload button?
can't get a file upload button to show on my swagger ui.
//tried this
[HttpPost("UploadFile2")]
public async Task UploadFile2(
[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] IFormFile file)
{
// var file = req.Form.Files["File"];
var myBlob = file.OpenReadStream();
await _blobService.UploadFileAsync(myBlob, _containerName, file.FileName, file.ContentType);
return new OkObjectResult("file uploaded successfylly");
}
Hi, how to authenticate function using client certificate from logic app? Could you please make a video for the same.
I'll absolutely make a video for that. I'll prioritise it, so you should see something soon!
is there a way to document these items automatically by using xml generated by api build
Do you mean keep/store the records you're sending through Swagger? I'm not sure if Swagger allows you to do that, but I'm sure you could do something similar with postman, I know it has some scripting capabilities built in but I haven't used them myself.
@@rowan-lea I mean being able to produce a swagger.json with a with endpoints without decorating each function endpoint by using the xml of the build dll
@@ericn6463 ahhh I see. It's not something I've ever come across I'm afraid, but it doesn't mean there isn't anything out there. Perhaps there's a third party/open source solution for that.
From this video ua-cam.com/video/LZBD-ZAKZ0g/v-deo.htmlsi=OBddpkNjEl3alxh2 you can see swagger has been generated automatically on a web api with adding attributes watch from 7:44. I wanted to know if this was possible with a functions app
@@ericn6463ah I see! Yes you should be able to, this document explains it better than I could, but you need to create a startup class that inherits from FunctionsStartup to achieve it: www.c-sharpcorner.com/article/how-to-configure-swagger-in-azure-functions-apis/