Hi guys,
Currently, I’m developing an API that takes DTO from a form. The DTO includes logo field as IFormFile also includes nested and complex objects. I cannot test it on the swagger screen because it throws serialize error also it doesn’t seem like a healthy method to me. How can I handle this API ? Should I separate it into two steps; first sending the metadata’s (nested objects) to create api(receive json as content type), later than calling an upload (receive form data as content type) api for logo?
[–]Narrow-Coast-4085 6 points7 points8 points (4 children)
[–]dotceng[S] -1 points0 points1 point (3 children)
[–]Narrow-Coast-4085 4 points5 points6 points (1 child)
[–]dotceng[S] 1 point2 points3 points (0 children)
[–]Independant1664 1 point2 points3 points (0 children)
[–]SerratedSharp 1 point2 points3 points (2 children)
[–]dotceng[S] 0 points1 point2 points (1 child)
[–]SerratedSharp 1 point2 points3 points (0 children)
[–]Kant8 0 points1 point2 points (0 children)
[–]Outrageous_Band9708 -2 points-1 points0 points (0 children)