Step by Step Tutorial: POSTing to a REST API using c# Windows Client

preview_player
Показать описание
This tutorial builds on our previous examples, specifically: Authenticating to a REST API and allows you to make POST requests to a REST API.

Specially were going to use our Windows Forms application, (written in c#), to create an issue in Jira, by attaching the relevant json object to our request object.

Рекомендации по теме
Комментарии
Автор

I also use regions, especially in large projects. Not only does it allow me to declutter the display, but it helps me to find things much more quickly later on in time when I've forgotten about what I did and why which I believe is something that every developer has to deal with. If you can remember everything about your code, my impression would be that you're not writing much of it. I do think the comment about wanting to hide ugly code is funny, but of course we who use regions know why we do it, and frankly shouldn't have to explain it to skeptics.

fredflintstone
Автор

But, man, where is the link of the source code?...mmm...i think that it would be a really great tutorial but only missing that part.

LuisCorea
Автор

Your videos have brilliant informative content at a good pace. Thank you for making these.

bencraft
Автор

Great video. Will probably review the others as well. Quite comical and I really like your accent :)

TheKeenan
Автор

Really nice job....
Was stuck with this issue for 2 days...
but finally saw ur video... :)

nikhilpurohit
Автор

I was expecting a video showing how to convert a C# Object into a JSON Object.
Let's say i have a multiple boxes and menus and checkbox and all in a Form that i want to transform into a JSON string to create an Item.
As in your example TEST-17 would have multiple other attributes customisable :
- Title
- Reporter Name
- Description
- Label
- Priority
- And so on..

One button tranforming all those variables into a C# object, or string, or whatsnot, right into a JSON string that we then send to the server as a POST req.


Maybe for another video ?

Anywa, thanks a for your tutorials.
You have no idea how it helped me after looking for content on that for days.
I'm trying to create an App to create "Tickets" in GLPI on my own, and other stull to avoid using the web client which is quite heavy and slow.

Thanks again and if you're not done with API REST yet, please, dont hesitate to make more "in-depth" tuts. :)

borisgauthier
Автор

Would it be possible for you to include a PUT request in the Github code? I'm using a similar setup for a project I'm working on and my POST request always returns a success code or exception while my PUT request returns nothing and the database doesn't update.

foxman
Автор

Very helpful video!
Thanks very much friend

kitohammond
Автор

Very nice video! Thank you for doing such awesome videos!!!

BakhytBakiyev
Автор

Thanks for the Video. is it possible to connect with the API Key, not user name and Password. do you have the code for that?

sutharshansupiramaniam
Автор

I Cant understand why there is videos like this one that dosent share the code.

UltraBoiDanielSalama
Автор

great Video, thanks for sharing, could you please next time make zoom in your visual studios editor to make bigger the commands text so we can see better your code. thanks.

iturribeitia
Автор

. you are kingggg, thnx thnx <3 <3

kelesyus
Автор

Great Video Les
I have my POST function working and its hitting the API, but trying to get a response and getting errors INTERNALSERVERERROR 500.... (pulling whatever hair out that I have left)
I can see the status 200 OK on the response status but unable to get the repose detail (i.e. the response ID)

paullyie
Автор

I am doing the same thing like you did but i am getting 403 forbidden error from a response. Could you help me?

ardaersoy
Автор

Unable to follow along, even when starting with "consuming-a-rest-api-from-c" page, because doing so already gives 1000+ errors when doing exactly as stated. Also, the "Debug Output" section does not explain how it is implemented ... no project files available for download so that I could see where I should fix my "mistakes". Even trying to go back and follow from the beginning is taking way more time than advertised since there are so much changes made to the project, it is so very confusing since we cannot start from scratch using this video / blog page. Getting to the end result without backtracking and going back and forth between your blog pages/videos, just to see where you say "oh there was a mistake here" is extremely confusing. Too bad, I really hoped it would be helpful

beatznone
Автор

how we can get response after share content on facebook in Asp.Net

Bilalkhan-Spn
Автор

Nice and informative video. Is it possible to download your source code? Thanks

Manithan
Автор

Hi sir, thanks a lot for your tutorial. Could you please make another video about DELETE and UPDATE using your method?

bobbypaw
Автор

Thank you so much... Your teaching structure is excellent! Keep it up!

cj_harris