I gotta tell you man you are doing such an amazing job for begginers. I'm glad I met your channel
@nickproudprogrammer2 жыл бұрын
That's so great to hear! Thanks for the feedback. Let me know if there are any specific topics you'd like to see
@guillermomazzari49832 жыл бұрын
I am a new fan of your channel, very grateful to you for sharing your knowledge!
@nickproudprogrammer2 жыл бұрын
You are very welcome
@britishairways7872 жыл бұрын
Amazing work Nick !! Very happy that I found your video. Nice and clean explanation !! I am just beginning to understand RestSharp to implement the same in my current project. Myself being a QA would love to see more videos on deserializing the content and asserting them please :) Many Thanks and keep up the good work !
@nickproudprogrammer2 жыл бұрын
Thanks for the feedback! That's very useful! I'll add that to my future video list 👍
@misterwoody_2 жыл бұрын
Updated... Thanks Nick. Looking forward to a deserialization video when consuming existing API's. The major version bump to 107 caused me some issues when doing just that - to overcome the issue where I had a "bag full of nulls" for objects, make use of the JsonPropertyName annotation - put the returned name in the exact casing inside the annotation just above the record/class property and things come together. Hope that helps others in similar boat. Cheers
@nickproudprogrammer2 жыл бұрын
Hey Tony! Awesome that's a great spot and thanks for sharing the tip!
@slavkodjakovic26702 жыл бұрын
Regards Nick! You explained this nicely. Thanks. But how to upload a xml file for example "A: \ VStudio \ Invoice \ Invoice-123.xml" via Rest API?
@nickproudprogrammer2 жыл бұрын
Good question. First you'd need to get the data out of the XML file. You can either read the XML file data into an object - docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/serialization/how-to-read-object-data-from-an-xml-file or you can read it as a string and then convert that into an opject with File.ReadAllText. Then, take a look at RestSharp's AddXMLBodyMethod - restsharp.dev/usage.html#request-body