Forum Discussion

Pradeepmogha's avatar
Pradeepmogha
New Member
5 years ago

Get Api c# sending Object in that Array

I am using C# API where I want to write get API where I want to send below model as input, can anyone you let me syntax of the same

 

{ "FormID": 1, "ProviderID": 1, "FormDetailID": 0, "FileList": [{ "FileID": 6, "Name": " ", "Description": null, "Type": " ", "Size": 1, "Path": " " } ] }

 

I tried couple of way like  below

https://localhost:44355/api/Form/Attachment?formId=70&fileList=%7B%22FileID%22%3A%206%2C%0A%22Name%22%3A%20%22Capture%22%2C%0A%22Description%22%3A%20null%2C%0A%22Type%22%3A%20%22JPG%22%2C%0A%22Size%22%3A%2010000%2C%0A%22Path%22%3A%20%22%22%7D

 

and https://localhost:44355/api/Form/Attachment?formId=70&fileList={"fileID":5}

 

but for some reason FileList object is not reading in C#

No RepliesBe the first to reply