Questions tagged [http-verbs]

HTTP Verbs represent the request methods that are recognized as part of the Hypertext Transfer Protocol. These include but are not limited to POST, GET , PUT and DELETE.

219 questions
-1
votes
1 answer

What is the correct way to implement PUT in REST?

I can GET the data of a user on the /user/{username} URL and the reponse is { "id" : 1, "username" : "testuser", "email" : "test@example.org" } In my implementation if you PUT data on the /user/{username} URL the backend creates or updates…
-1
votes
1 answer

What HTTP Verb Should I Use For Comparing Data

I have an endpoint that takes a list of email address (could be a very long list) and finds users with that email. What HTTP verb is best for this? I am thinking GET as there is no backend mutation but is GET ideal for sending this kind of data to…
16kb
  • 889
  • 9
  • 17
-1
votes
1 answer

Should a POST request with a query return a 404?

I've got an API that should return a single resource, but the method of specifying the resource is complex enough that shoehorning it into a GET request query string doesn't make sense, so instead we use a POST and have a representation of the query…
GoatInTheMachine
  • 3,583
  • 3
  • 25
  • 35
-1
votes
1 answer

Fix for HTTPVerbTampering in MVC3

We have an application which is developed using MVC3 and .Net framework 4.0. To prevent HTTP Verb Tampering, we have included below code in application's web.config file. In local machine given fix was working as expected and returns 401…
Tech Learner
  • 1,227
  • 6
  • 24
  • 59
-1
votes
1 answer

Doubts on the correctness of Microsoft Azure Multimedia Services REST API

The Azure API claims to be a REST API. I found it while for patterns and sample implementations and verbs in REST, when inspecting it in their (supposedly) REST API reference, they seem to have invented a new verb CancelJob and altering internal…
Ariel M.
  • 896
  • 8
  • 24
-1
votes
1 answer

how to submit something through DELETE HTTP verb

how to send data or submit to URL through DELETE HTTP verb, what is the gain of it and what about browsers support? thanks,
mwafi
  • 3,946
  • 8
  • 56
  • 83
-1
votes
1 answer

Is it possible to have a html hyperlink with a verb (method/action) POST, PUT or DELETE?

Is there any other verb than GET that we may send with a straight html hyperlink? Do you know any document that specify why a html hyperlink only use the GET method?
Eric Lavoie
  • 5,121
  • 3
  • 32
  • 49
-2
votes
1 answer

Questions on all possibilities of HTTP verbs

I want to know on all possibilities of HTTP Verbs. Can we post new records using HttpGET? Can we fetch data using HttpPOST, HttpPUT or HttpDelete? These were few questions I was asked in a interview. Apart from these, are there any other tricks or…
Daisy
  • 73
  • 1
  • 10
-2
votes
1 answer

Is it good to use the Http DELETE verb to define a REST API that delete a single specific object?

I am implementing some REST APIs and I have a doubt about what HTTP verb should I use to implement an API that remove a single record from my DB I thought that I should use the DELETE method but reading…
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
1 2 3
14
15