Questions tagged [http-delete]

DELETE is an HTTP request method used to delete a specified resource on server side.

DELETE is an HTTP method which requests that the origin server delete the resource identified by the request URL. This method may be overridden by human intervention (or other means) on the origin server. The client cannot be guaranteed that the operation has been carried out, even if the status code returned from the origin server indicates that the action has been completed successfully. However, the server should not indicate success unless, at the time the response is given, it intends to delete the resource or move it to an inaccessible location.

A successful response should be 200 (OK) if the response includes a response body describing the status, 202 (Accepted) if the action has not yet been enacted, or 204 (No Content) if the action has been enacted but the response does not include a response body.

If the request passes through a cache and the URL identifies one or more currently cached entities, those entries should be treated as stale. Responses to this method are not cacheable.

References- apache.org, w3.org

536 questions
0
votes
1 answer

CURL Delete request to Instagram API fails

I'm trying to unlike a photo that I just liked on Instagram with a call to the API. My url is exactly as the URL in instagrams API tool. Im using Curl. I get an empty response, no error or status code. Here is my "like/unlike" method written in…
JOSEFtw
  • 9,781
  • 9
  • 49
  • 67
0
votes
1 answer

Rails 3) Delete, Destory, and Routing

The problem is the code below <%= button_to t('.delete'), @post, :method => :delete, :class => :destroy %> My Post model has many relations that are dependent on delete. However, the code above will only remove the post, leaving its relations…
Maximus S
  • 10,759
  • 19
  • 75
  • 154
0
votes
0 answers

How to get multipart contents using the PUT method in Spring MVC?

I was fumbling to use RequestMethod.PUT (and RequestMethod.DELETE) as described in my previous question. At last the approach worked but when I designate a method with RequestMethod.PUT in my Spring controller, this method is called when the form…
Tiny
  • 27,221
  • 105
  • 339
  • 599
0
votes
1 answer

Deleting page tabs

When I try delete a page tab, facebook throws me an error. $facebook->api('/PAGE_ID/tabs/TAB_ID', 'post', array( 'method' => 'delete', 'access_token' => PAGE_TOKEN )); Fatal error: Uncaught GraphMethodException: Unsupported post…
Datamosh
  • 126
  • 1
  • 7
0
votes
0 answers

Can't delete a Page note via the Graph API

I've been able to successfully create a Page 'Note' object via the Graph API, however can't seem to get the delete working. I've been attempting to delete the note by issuing a HTTP DELETE…
-1
votes
1 answer

Server and database file handling (post, get, delete) is working only partially in my spring boot project

Only POST is working. GET and DELETE are throwing the following error when testing through Postman: { "timestamp": "2023-04-06T14:01:59.898+00:00", "status": 500, "error": "Internal Server Error", "path":…
-1
votes
1 answer

AxiosError: Request failed with status code 404

Here the delete function const DeletePost = (id) => { console.log(id); axios.delete(`${BASE_URL}/futureevents/delete/${id}`) .then(res => { console.log("success"); }) .catch(err => { console.log(err); }) } console log display id…
-1
votes
1 answer

No route matches [DELETE] "/" -- routes problems

I'm trying to make a button work deleting a product from my app, but when i do it it show the error: No route matches [DELETE] "/" I search for this problem but i couldn't find something that really helped me. This is my routes file…
-1
votes
1 answer

How should we implement @DELETE method?

https://..../v1/trails/245 @DELETE("v1/trails/")
-1
votes
1 answer

which type of request is used for the `delete` button in the REST context?

I am creating a REST API for the Order screen. I have methods: GET /api/orders GET /api/orders/{orderId} I have some buttons on the Order page and I created few endpoints for that: PATCH /api/order/buttons/mark-as-read PATCH…
Pavel Petrashov
  • 1,073
  • 1
  • 15
  • 34
-1
votes
1 answer

How do I delete something from listview and reload the page? Flutter Web

Hello I am trying to implement a delete request. I successfully did it, however it is not refreshing the page. The use has to manually refresh the page in order to see the changes. I tried using setState((){}) but that did not work. class TodoList…
Jai
  • 15
  • 4
-1
votes
1 answer

Fetch API Delete Request Data Returns - null

I'm trying to send a Delete request using Fetch. I get a response status - OK, but data is null. However the request has a body with an object, but I'm unable to see it back in the data received from the request. Here is a sample code. let myObj =…
-1
votes
1 answer

Error Swagger Ambiguous HTTP method for action

i need to know why occurs the next situation and if exists a different solution: Actually my Api has an error when with Swagger use in method controller a HttpDelete action and Route decoration: [Route("delete/{id}"), HttpDelete("{id}")] public…
Dr oscar
  • 359
  • 1
  • 4
  • 16
-1
votes
1 answer

Delete some parts in json response python

This is my JSON response and i want to drop the whole meta header part. { "meta": { "limit": 1000, "next": "https://cisco-demo.obsrvbl.com/api/v3/observations/all/?limit=1000&offset=1000", "offset": 0, "previous":…
-1
votes
1 answer

Access-Control-Allow-Origin error with DELETE, while working fine with GET / POST

BackEnd is Spring, I'v configured CORS like this @SpringBootApplication public class App { public static void main(String args[]){ SpringApplication.run(App.class, args); } @Bean public WebMvcConfigurer corsConfigurer() { …
user9309329
  • 313
  • 3
  • 13
1 2 3
35
36