RestSharp - How to Serialize requests like an absolute boss

  Рет қаралды 3,721

Nick Proud

Nick Proud

Күн бұрын

Пікірлер: 15
@albertrangel5394
@albertrangel5394 2 жыл бұрын
I gotta tell you man you are doing such an amazing job for begginers. I'm glad I met your channel
@nickproudprogrammer
@nickproudprogrammer 2 жыл бұрын
That's so great to hear! Thanks for the feedback. Let me know if there are any specific topics you'd like to see
@guillermomazzari4983
@guillermomazzari4983 2 жыл бұрын
I am a new fan of your channel, very grateful to you for sharing your knowledge!
@nickproudprogrammer
@nickproudprogrammer 2 жыл бұрын
You are very welcome
@britishairways787
@britishairways787 2 жыл бұрын
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 !
@nickproudprogrammer
@nickproudprogrammer 2 жыл бұрын
Thanks for the feedback! That's very useful! I'll add that to my future video list 👍
@misterwoody_
@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
@nickproudprogrammer
@nickproudprogrammer 2 жыл бұрын
Hey Tony! Awesome that's a great spot and thanks for sharing the tip!
@slavkodjakovic2670
@slavkodjakovic2670 2 жыл бұрын
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?
@nickproudprogrammer
@nickproudprogrammer 2 жыл бұрын
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
@slavkodjakovic2670
@slavkodjakovic2670 2 жыл бұрын
@@nickproudprogrammer Thank you Nick!
@Renanmromeo
@Renanmromeo 2 жыл бұрын
Nice!
@nickproudprogrammer
@nickproudprogrammer 2 жыл бұрын
Thanks!
@maxspeed2247
@maxspeed2247 2 жыл бұрын
very useful,thank you
@maxspeed2247
@maxspeed2247 2 жыл бұрын
Getting HTTP Headers in C# is SUPER easy!
13:15
Nick Proud
Рет қаралды 17 М.
RestSharp and C# is HTTP requests on easy mode. Find out why.
11:25
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 914 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 318 М.
How to Parse JSON Data in C# - Coding Gems
16:52
ParametricCamp
Рет қаралды 41 М.
How to Make 2500 HTTP Requests in 2 Seconds with Async & Await
4:27
John Watson Rooney
Рет қаралды 137 М.
Understand Clean Architecture in 7 Minutes
7:02
Amichai Mantinband
Рет қаралды 131 М.
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 322 М.
Python Logging: How to Write Logs Like a Pro!
11:02
ArjanCodes
Рет қаралды 188 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41