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
0
votes
1 answer

Delete verb not working in IIS 8 windows 2012 R2

Larvel website hosted on Windows server 2012 R2 but I am not able to delete Attachments in the website. Please refer screenshot now Error message Request URL:http://13.232.72.80/api/delete-form-data/form-field/33 Request method:DELETE Remote…
0
votes
1 answer

403 forbidden on GET method while passing parameter integer value with delete keyword

Getting 403 Forbidden on GET method when Firewall is enable. I have a requirement to search data on Web API, where I am passing input string as parameter in GET method. E.g. search "how are you" or "task 124". It is giving me the searched…
Matt
  • 23
  • 1
  • 4
0
votes
1 answer

Which REST HTTP verb to use for "Q&A" scenario?

An auth system I work on has this new function: 1. Auth system allows users to specify Relying Parties they transact with, 2. The Relying Party can approve/deny/maybe the request (authorisation) - maybe causes a redirect to the RP website…
0
votes
2 answers

REST: How should a resource be “renewed”?

I am creating a RESTful API where “entries” can be added, modified, and deleted. Each entry is automatically assigned an expiration date when it’s created and is automatically deleted unless renewed before that date. When an entry is renewed, it is…
Benjy Wiener
  • 1,085
  • 2
  • 9
  • 27
0
votes
2 answers

IIS: How to disable HTTP method TRACE?

I followed this, which led to this to try to disable my website from accepting the TRACE method (verb). Basically I added the section below to inside Web.config (Default Web Site and the other website):
Adriano_Pinaffo
  • 1,429
  • 4
  • 23
  • 46
0
votes
1 answer

Correct HTTP verb for updating cache for REST Api

I am developing RESTful Api micro service which is cache all data in memory (and update it every n minutes from persistent storage). Service has an api for immediate cache updating /update-cache. What is best http verb for updating cache? GET, POST,…
Dmitriy O.
  • 63
  • 6
0
votes
1 answer

Use PUT or PATCH verb when request is updating and deleting: Real life design

I've been trying to get the HTTP verbs right lately, however I have a doubt regarding using PUT, PATCH or even POST for the following scenario. The front end part is sending the following JSON data: { name: "Spanish-01", code: "ESP01", …
Luis Deras
  • 1,239
  • 2
  • 19
  • 48
0
votes
1 answer

API Updating an array in an object's property: should we send an array of ids or the complete object?

For a project we have a class called Item. This Item has an ID, Title, Description and MediaFile[]. Now, we have an edit function in which we can change the title, description and add/remove MediaFile. Adding a MediaFile is done by posting a file to…
MysticEarth
  • 2,646
  • 4
  • 33
  • 53
0
votes
0 answers

form with delete method wont hit asp.net Core controller with HttpDelete ActionVerb

I am using .Net Core 2.1 I have a smal form that hits the controller when I dont have any ActionVerbs on the controller. As soon as I add method="delete" to the form and [HttpDelete] on the controller I get 404. What am I doing…
AllramEst
  • 1,319
  • 4
  • 23
  • 47
0
votes
0 answers

Impact in terms of response time if we only use POST instead of other REST verbs?

I read it in this post that An operation behind a GET endpoint does not change the target state of the server therefore the response of a GET endpoint can be cached resulting in further requests to the same endpoint being returned faster from…
Sudhanshu Gaur
  • 7,486
  • 9
  • 47
  • 94
0
votes
0 answers

Delphi datasnap REST server PUT & POST management

Relation between REST CRUD operation and HTTP verbs are described at: Using HTTP Methods for RESTful Services Also, at Embarcadero REST overview it is covered with exmples: REST overview However, in implementation of mapping PUT and POST there is…
Dejan Mitic
  • 1
  • 1
  • 3
0
votes
1 answer

REST Creating a resource at point-of-request

Say I have the need to expose a service, where I can request an analysis of a user over a specific range of time (common actions, activities, relationships, etc.). I would immediately think of this as: /users/{userId}/analyses -…
It's an account
  • 143
  • 1
  • 8
0
votes
1 answer

Make AWS serverless function unique by method/verb

I got some CRUD operations for my user. I want my URI to be /user/{id} and make the VERB decide what method to use, eg. post and put. In my cloudformation template file my resources looks like this: "UpdateUser" : { "Type" :…
thatsIT
  • 2,085
  • 6
  • 29
  • 43
0
votes
1 answer

How to use HttpGet in ASP.NET Core dynamic web api?

How to accept Verbs(Get) in ASP.NET Core dynamic web…
0
votes
0 answers

Why use separate verbs in web api?

I started learning web api recently. I know in web api we use get verb to retrieve data, post verb to insert data, put verb to update data, etc. Someone asked me why we need separate verbs for insert,update, delete etc. We can do delete by using…
Irshad Faras
  • 153
  • 1
  • 1
  • 10