REST Client C# Console Part 1 (GET)

Поділитися
Вставка
  • Опубліковано 27 сер 2024

КОМЕНТАРІ • 36

  • @aykutatmaca1814
    @aykutatmaca1814 2 роки тому

    It was hard to find a good resource like this, between dozen of useless. Thanks

  • @vijayramvedam3623
    @vijayramvedam3623 6 років тому +1

    Your videos are extremely helpful. I'm glad i found your channel! Thank you!

  • @RayPJenkins
    @RayPJenkins 5 років тому

    Subscribed, breaking into the automation world. Your videos are very helpful

    • @telejonjensen
      @telejonjensen  5 років тому +1

      Hi Chris,
      Great, I'm glad these were useful!
      Jon

  • @RickGtr271
    @RickGtr271 6 років тому

    Excellent video. Thanks for the help.

  • @ronaldkipngetichsigei6489
    @ronaldkipngetichsigei6489 4 роки тому

    Thanks, Can you do videos on consuming those api?

  • @nishcheymaithani2879
    @nishcheymaithani2879 3 роки тому

    Can someone please give reference code to put Basic Authentication in this.

  • @deradera677
    @deradera677 4 роки тому

    Thanks Jon!! How to save the output data that you received in a file and how to run or consume this service everyday automatically at some interval please?

  • @vitorbarroso461
    @vitorbarroso461 5 років тому

    thank you great video!!! :)

  • @SoniSamuelP
    @SoniSamuelP 5 років тому

    Hi Jon, Great Videos. I have a query, I understand Web.API supports both JSON and XML. How do i return the "Get" in an XML Format instead of JSON.

    • @telejonjensen
      @telejonjensen  5 років тому

      Hi Soni,
      You should be able to something like this:
      someHttpWebRequest.Headers.Add(HttpRequestHeader.Accept, "application/xml");
      Thanks for watching and for the question!
      Jon

  • @chakshaysaini3343
    @chakshaysaini3343 5 років тому

    thank you

  • @MichiganPeatMoss
    @MichiganPeatMoss 6 років тому

    Does another section do in depth about connecting to an external database with SSH keys, or is this a prerequisite to have this already available in the VS solution? :) Thanks.

    • @telejonjensen
      @telejonjensen  6 років тому

      Hi Peter,
      I can check into that. Thanks for watching.
      Jon

  •  6 років тому

    Thx dude

  • @SkomGala
    @SkomGala 7 років тому

    Hello! How can I request a specific person in Get method ? Like api/person/n (n-variable) is it possible ?

    • @telejonjensen
      @telejonjensen  7 років тому

      Hi Галина,
      Yes - part 6 and the video on parameters go into this.
      ua-cam.com/video/kVUUhlLB0sI/v-deo.html
      ua-cam.com/video/1i5yvDvpBgs/v-deo.html
      Thanks for watching!
      Jon

  • @user-tn6ei6ke2o
    @user-tn6ei6ke2o 6 років тому

    I need you some help.. I am very very a beginner. I don't know much about examples kind of... google exameples... I make a .net core program using VSCode.. Tell me an example of using a rest api on a .net core(vscode).

    • @telejonjensen
      @telejonjensen  6 років тому

      Hi,
      I have a series of videos on .Net Core here: ua-cam.com/play/PLDQIAo9A3-Db2sHKPXZgq-5S27tGh7pIL.html
      I'll also be doing some additional videos on using .Net Core and AWS.
      Is there a reason you aren't using Visual Studio instead of VS Code? Are you on a Mac or Linux?
      Thanks for watching!
      Jon

    • @user-tn6ei6ke2o
      @user-tn6ei6ke2o 6 років тому

      It is being developed in a Windows environment. I just wanted to use VS code. However, I used Asp.net Core 2.1 in Visual Studio 2017 and moved it to VS code.
      Several references to your video have been helpful.

  • @markowasovic-glisic4987
    @markowasovic-glisic4987 8 років тому

    Hi there. I m beginner and just now i ended with course of WCF services (SOAP). And I want to learn REST, because how i see that is future,and SOAP going to history with easy steps... But this all is little confusing to me. What bothers me...In WCF i was learning how we must create (contract & server), then hosting that server putting URI server address into hostclass , add endpoints, and in the end...open that server for listening. In yours previous videos, you are using DHC like client application who consuming yours REST server , if I right ... but you never put URI adress in REST server. You using your local address: localhost8989/...... What if you want to upload to the dedicated server, where you put URI addresses in your build service application. For e.g. you build application for the customer through freelancer,he do not wants that address.
    Sry my English is not perfect, but i hope, you gonna catch a point of my confusion .

    • @telejonjensen
      @telejonjensen  7 років тому

      Hi Marko,
      I just posted a series of videos showing moving the Web Server to Azure.
      Jon

  • @rstrumbel
    @rstrumbel 6 років тому

    Hopefully you will see this Jon, I realize this is an older vid, but I'm just getting around to learning this stuff. I have followed along with the Web Service portion before this and now with the client... but I get a 403 error every time I run the client. My Service is at localhost:65197/ and that is the base address I have set into the client BaseAddress field. But anything I try and do results in a 403 permissions error. If I run the commands from the DHC (aka Restlet) Client, it works great. Any ideas ?

    • @telejonjensen
      @telejonjensen  6 років тому

      Hi Rod,
      Do you have some type of permissions check on the endpoint you are calling? What client are you using?
      Jon

    • @rstrumbel
      @rstrumbel 6 років тому

      Wow, thank you for the prompt response, really didn't expect it. :)
      In response, I have nothing setup aside from what has been set up during the videos. Client is that written during your C# client creation videos. It's just odd that it works from the Chrome Extension client but not from the developed C# ASP.net REST client. I have granted FULL ACCESS to the ASPNET account as well to the webservice location, that didn't help either.

    • @rstrumbel
      @rstrumbel 6 років тому

      Platform Specs: VS2015u3 on Windows 2010 v1607 bld:14393.1715. Have the client code setup to compile to .Net 4.5.2 and "Any CPU" (prefer 32-bit). Used the NuGet to get the latest greatest version of the Web API client module (as dictated in the Client builder vid #1).

    • @telejonjensen
      @telejonjensen  6 років тому

      Hi Rod,
      Can you debug the web service so that you can see if the request is making it into the service? Did you happen to move the web server project? Are you sure the port number is right? Sometimes that changes.
      If you want to zip your server project and the client project up I can install here and see if I can see what the problem is. If you want to do that I can provide you an email address you can send the files to.
      Thanks
      Jon

    • @rstrumbel
      @rstrumbel 6 років тому

      Dropping a breakpoint in the server code inside each method of the PersonController ... nothing. It doesn't appear to be able to access the REST server. But, I know the port is correct because I can still access it via the Chrome Client and when I do the breakpoints in the server ARE hit. This is some sort of permissions issue I think. Can gladly zip up the client and server progs and send them to you, they are just about "duplicates" of your own. Great series by the way... very easy to follow and understand. Can send your email address to me at rocklight at gmail dot com. Thank you for sticking with me on this!