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.
Questions tagged [http-verbs]
219 questions
0
votes
0 answers
The most reliable way of specifying new REST routes for custom actions in yii\web\UrlManager configuration
I have created a standard yii\rest\ActiveController and added my custom action to it:
public function actionTest($id)
{
return ['test' => $id];
}
To make it work, I have added a new entry to extraPatterns of rules of…

trejder
- 17,148
- 27
- 124
- 216
0
votes
1 answer
Why I don't have to specify verbs() for "GET" for my custom REST action?
I have created a standard yii\rest\ActiveController and added my custom action to it:
public function actionTest($id)
{
return ['test' => $id];
}
I have added a new entry to extraPatterns of rules of yii\web\UrlManager:
'extraPatterns' => [
…

trejder
- 17,148
- 27
- 124
- 216
0
votes
1 answer
How to display Body type in Swagger (OAS3) for GET requests?
So i'm working on some APIs (Spring Boot)where I have both input and output of type XML. For documenting, I'm using Swagger (OpenAPI 3). Here is the controller:
@RestController
@Validated
@RequestMapping(value = "v1/my-endpoint", consumes =…

Andrei Manolache
- 766
- 1
- 8
- 17
0
votes
1 answer
is it a bad practice to add a restpoint some verb in the path in order to distinguish two identical respoints?
Having the entity Client and a rest api for it, I can think of two restpoint PATCH methods, one from a screen that modifies just some attributes and the other from calling a webservice that register an existing client in some third party system and…

fernando1979
- 1,727
- 2
- 20
- 26
0
votes
1 answer
How to determine http verb allowed on a .net function using ildasm
I have a .net DLL which has web api end points with http verb decoration. And I only have ildasm disassembler to view IL code. How can I check what http verb is allowed for an endpoint(a particular Controller Action method)?

Mahen
- 3
- 5
0
votes
1 answer
Redirect To Error when Client Side is using older HTTP Version
I think its a theoratical Question. I have a project on dotnet framework 4.5 and what i need to do is that whenever a client is using older httpversion i have to redirect it to an error page.
i am getting http version like this
var d =…

Asif Ali
- 123
- 7
0
votes
1 answer
how to implement http patch logic
i am using java, spring mvc and mybatis.
for http patch, it is used to update partial resource, while put updates the entirely resource.
my code looks like
@RestController
@RequestMapping("/test")
public class Test {
@PutMapping
public void…

frank
- 1,169
- 18
- 43
0
votes
1 answer
Very strange http delete rest operation - delete with a lot parameters
The analysis team worked on some specification which sounds a bit strange to me.
I have to delete a resource on a database table. I have the id of the rekord as input parameter.
This is straight forward http delete operation.
DELETE…

Falco
- 1,458
- 3
- 19
- 47
0
votes
2 answers
Using GET verb to update in rest api?
I know the use of http verbs is based on standard specification. But my question if I use "GET" for update operations and write a code logic to update, does it create issues in any scenario? Apart from the standard, what else could be the reason to…

DxG
- 147
- 4
- 17
0
votes
1 answer
Can we get data from database using [HttpPost] & insert data into database using [HttpGet] in ASP.NET MVC?
Can we do update operation using [HttpsGet] ?
I am bit confused on this because I am new in coding. Can anybody help me on this to clear the concept?

ali
- 31
- 5
0
votes
0 answers
How do you allow PUTs and DELETEs in ASP.NET Core 3.1 MVC
I'm trying to get a simple MVC page to PUT to my Controller. GET and POST will work fine, but I am doing an Update, so a PUT is more applicable, and it's calling the WebAPI backend with a PUT just fine.
I've created a new base project and replicated…

Red
- 3,030
- 3
- 22
- 39
0
votes
1 answer
Which HTTP Verb should I use to claim and lock an item in a job queue?
I plan on using an HTTP REST interface to connect to a Job Control service.
One key operation is to request a computational Job.
The caller does not know the ID of the Job; that is what it will be told.
The job will be marked in the database as…

Paul Chernoch
- 5,275
- 3
- 52
- 73
0
votes
1 answer
rails redirect or render with a specific verb
I want to redirect to a resource index when a new item is created
Here is a piece of the controller:
def create
@asset = Asset.new(params[:asset])
@assets = Asset.all
respond_to do |format|
if @asset.save
format.html {…

Sheena
- 15,590
- 14
- 75
- 113
0
votes
0 answers
ASP.NET & IIS 6.0 Verbs reset to default after upload
Every time I reload a project from the studio, I find that IIS overwrites the web config file. As a result, all settings are lost, including those allowed by verbs. You have to go to the Handler Mapper and rewrite the PUT and DELETE. How to fix it ?

Vlad Kisly
- 354
- 6
- 16
0
votes
1 answer
Can we pass PUT,PATCH and DELETE request via route() method from blade in anchor tag?
Rephrasing Question : I know how it works via form submit and ajax request, i've been looking that if there is any way we can send "DATA", simply by calling URL (mentioned below) for PUT,PATCH and DELETE and csrf token will be taken from Kernel >…

Vipertecpro
- 3,056
- 2
- 24
- 43