REST POST - Build a REST Service in Visual Studio 2015 Part 5

Поділитися
Вставка
  • Опубліковано 27 сер 2024
  • In this session we implement the GET and demonstrate the POST and GET working together.

КОМЕНТАРІ • 21

  • @SujilMaharjan
    @SujilMaharjan 7 років тому +1

    Wow. Thank you so much! This made my life 1000 times simpler :)

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

    your really a professional person who can explain very clear and very smart

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

    Thank you, Jon. This was very clear and very helpful!

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

    Very good and useful videos, many thanks

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

      You are welcome. Thanks for watching!

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

    Hi Thanks Jon for your amazing videos. Sometimes when you do "Post" the URl is not correct that 's why it looks strange. it should be localhost:123/api/person instead of localhost:123/api/person/8 for post verbs. Good luck!

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

    Hi. I've been following your tutorial till part 5 now I'm get an error " MySql.Data.Types.MySqlConversionException: 'Unable to convert MySQL date/time value to System.DateTime' "
    using vs '19

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

    very nice , put i want to check with you " How we can return json file start with object name?" also " How we can retuen multi object in json file?" i appreciate your support

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

    Hi Jon!
    I'm trying to POST this json object by ajax back to my server:
    {"value":["key2","number","volvo","123123123"]}.
    Do you have a tutorial on how I can read this json object from my Controller and do something fun with it?
    / DJ

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

      Hi DJ,
      ASP.Net WebAPI will automatically serialize the JSON into an object. Do you have an object defined? You can look at some of my PUT and POST examples to see how I am doing this.
      Thanks for watching!
      Jon

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

      It a solution in one of your videos! Thanks!

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

    Thanks for great videos, appreciate it. While going through the video I was able to see only pieces of code at a time. Is it possible, that you can put the sample code for this session online somewhere, so we can look at the complete code?

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

    Hi John, terrific tutorial set, thanks.
    Have you ever experienced "restlet client" performing valid POST and GET but no data flows either way?
    When i perform a POST, any json data entered passes a 0 for an integer and nulls for strings. i am sure its
    something simple but hoping someone has already experienced this.
    Thank you

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

      As update, the problem on the GET for me is "mySqlReader.Read()" operation. Valid data is is in "mySqlReader" but Read() is not treating as null. will update finding as feedback.
      thank you

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

      DOnt mean to be annoying but i started this train so will finish :). i had to ExecuteNonQuery() prior to executing the reader

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

      Hi Derek,
      Glad you got it working! Thanks for watching.
      Jon

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

    it's Great tutorial ,Thanks
    Please I need Your Help, In Get Method by Id parameter I need to add many of parameter plus id parameter and I need to retrieve more than Record From Database by Id parameter , I Hope to help me

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

      Hi Besa,
      Thanks for watching! You can add any number of parameters in the controller code.
      Jon