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
1
vote
1 answer
WEB API post from uri/ Query string in post
i have a model
public partial class TalentVendorShots
{
public int Id { get; set; }
public string Email { get; set; }
public string One { get; set; }
public string Two { get; set; }
public string Three…

Devon Daigneault
- 11
- 2
1
vote
3 answers
Cannot call API DELETE in ASP.NET core when running my tests (405 Method Not Allowed) . BUT it works in swagger
Maybe there are some sort of permissions I need to set up in the test webhost ? The Get and Post for the tests work fine. But get a HTTP 405 error when it tries to call the DELETE method on the controller.
[HttpDelete("{id:int}")]
public…

punkouter
- 5,170
- 15
- 71
- 116
1
vote
1 answer
What shoul the appropriate Restful API verb for a non CRUD opperation?
I have an API running in AWS-API Gateway that I am followiing the Restful standards, as much as possible.
Now I have an endpoint that should receive a JSON and just validate it. It is not a CRUD opperation - I have no interaction with database…

IgorAlves
- 5,086
- 10
- 52
- 83
1
vote
1 answer
HTTP verb GET or PATCH or POST or PUT when call increments views
I have an end point like this
/profiles/1
I want to get the profile whose id is 1 but at the same time increment the visited property by 1. The property comes as part of the object. Which HTTP verb I should be using to fetch the profile object with…

Angad
- 1,144
- 3
- 18
- 39
1
vote
0 answers
Push massive data through subsequent calls to HTTP API: verb to commit operation
I'm going to implement a set of APIs to enable a client to push a large dataset to a server through HTTP calls.
Attempting to be REST-compliant, I designed my API so that if a set of resources is available at the (relative) URL:
/myEntities
the…

Starnuto di topo
- 3,215
- 5
- 32
- 66
1
vote
2 answers
RESTful API design: list value options for query param
Let's say you are building an API returning a list of resources at
[GET] /resources
=>
[
{.. id: 1, foo: "A" ..}, {.. id: 2, foo: "B" ..}, {.. id: 3, foo: "A" ..}
]
Can be filtered using a query param:
[GET] /resources&foo=A
=>
[
{.. id: 1, foo:…

Manu Artero
- 9,238
- 6
- 58
- 73
1
vote
2 answers
PUT or POST HTTP verb when calling API endpoint which performs both UPDATE and INSERT?
I have a RESTful Web API (written in ASP .Net Core 2.1) which receives a "change-log" from the consuming client app. This is a JSON class containing all the modifications to the database that were performed on the client app while it was working in…

Fabricio Rodriguez
- 3,769
- 11
- 48
- 101
1
vote
1 answer
acceptverbs httpverbs.get?
What is the use of it????
acceptverbs(httpverbs.get)
and explain about the httpverbs.post too..
thanks

software
- 728
- 6
- 18
- 39
1
vote
1 answer
Identify HTTP verb from an HTTP request error response in Angular
I called a HTTP request from my Angular app, it failed and I got an error response. But, from the response, I am not able to identify the HTTP verb of the API that was called.
Is there any way to identify the HTTP verb from an error response? …

Arun Raj R
- 2,197
- 3
- 13
- 23
1
vote
1 answer
NodeJS Express - handling 404 (Not Found) and 405 (Method Not Allowed) separatedely
I'm trying to find a way to handle both 404 and 405 status code in my Express application, but handling them separatedely.
e.g.: I have a router like the following:
// Add routes for every path we define here.
server.use('/',…

Kiwanax
- 1,265
- 1
- 22
- 41
1
vote
1 answer
How to send structured data to a REST endpoint that retrieves objects? Which HTTP verb should be used?
I want to construct a REST endpoint to retrieve objects, but I need to send structured data as query parameters (e.g. a list). I was wondering if those data could be sent as request body (see example below). How should I handle this in order to…

Nelio Alves
- 1,231
- 13
- 34
1
vote
2 answers
http rest api delete entries in geode region
I have setup the Geode rest API and can run get and queries, via Chrome, on a region for example:
http://localhost:8080/gemfire-api/v1/items
When I try and delete entries in a region according to Developing REST Applications by using the following…

rupweb
- 3,052
- 1
- 30
- 57
1
vote
1 answer
How to create idempotent endpoint
I know that PUT is idempotent but how Can I ensure it programatically? What conditions I must meet to create fully idempotent endpoint ?

user3528733
- 1,259
- 7
- 20
- 37
1
vote
2 answers
Why use DELETE/POST instead of PUT for 'unfollowing/following' a user?
Referencing this API tutorial/explanation:
https://thinkster.io/tutorials/design-a-robust-json-api/getting-and-setting-user-data
The tutorial explains that to 'follow a user', you would use:
POST /api/profiles/:username/follow.
In order to…

billbunkum
- 11
- 3
1
vote
2 answers
HTTP Verbs, WebAPI
I would like to know the usage scenario of POST vs PUT in a WebAPI . I know the basic concepts that POST is for creating resource and PUT is for updating resource but not able to fully understand why we need a PUT over a POST.
I have 2 WebAPI…

Greg444
- 13
- 2