locked
Can you edit data with Web API??? RRS feed

  • Question

  • User453286268 posted

    Why is there no information on how to edit data with the web api? I just want to use Hurl.it to edit some data and it does not work - I get a 400 error! What is the point in having an API if there is not way to edit it??

    It works with POST, GET and DELETE. As soon as I put the: 

    MyUrl/api/things/id

    and then put the parameters... it just gives a 400 error. I am looking at the documentation and there is no information about how to update data. Of course I want to update data - that is one of the fundamental reasons to have the API.

    Friday, April 22, 2016 1:57 PM

Answers

  • User36583972 posted

    Hi lolzoid,

    Usually, we operate data in the API data like the below.

    Step 1: Create Web API, defined a variety of methods of database operation.

    Step 2: Call the Web API method in your site, and pass parameters.

    and then put the parameters... it just gives a 400 error

    I think there are some errors in the Web API (does not match a corresponding method).

    You should learn about the API, you can refer the following tutorial about Web API.

    http://www.asp.net/web-api

    Best Regards,

    Yohann Lu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, April 25, 2016 4:26 AM

All replies