I wonder about the REST API structure: Is it correct to use the HTTP DELETE method without effectively deleting a resource on the webserver dir but in a database?
Understanding HTTP DELETE method in a REST API
4.9k Views Asked by Mario Catillo At
1
There are 1 best solutions below
Related Questions in REST
- Query parameter works fine with fastapi application when tested locally but not working when the FastAPI application is deployed on AWS lambda
- Add an http GET/POST entry point to a Django with channels websocket
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Flutter connection to a local api
- Accessing REST API Status Codes using Azure Data Factory Copy Activity (or similar)?
- Mass Resource deletion in REST
- why when I check endpoint /tasks, an error always appears "error : invalid token" even though I have entered the appropriate token that I got
- How to prevent users from creating custom client apps?
- How to create a REST API with .NET Framework?
- Efficiently Handling Large Number of API Calls with Delphi 10.4 and OmniThreadLibrary
- Put Request throwing 401 [no body] Unauthorized
- Converting img src data to octet-stream
- Implementing Email Verification and Notification System in a Full-Stack Application with React Frontend and Node Backend
- Micronaut - Add Controller from external library
- Moving Template or OVA to Datastore using vCenter API
Related Questions in HTTP
- Handling both JSON and form values in POST request body with unknown values in Golang
- Why can't I use PUT requests?
- nginx set up reverse proxy from subfolder to a port
- Async Web Server RP2040 returning ERR_CONNECTION_REFUSED?
- Getting `FormatException: Missing extension byte (at offset 6)` exception for accessing `response.body` from a server deployed in Vercel
- Retrieving list of values from MYSQL data base based on input value(LARAVEL 10 )(GET HTTP METHOD)
- Unable to add request headers via CHttpFile - C++/MFC
- Why do we call all http services 'Web Api/Web Service'?
- How to correctly read POST REQUEST body on ESP32?
- on linux gitclone issue remote server error showing fatal error with proxy n port
- Elasticsearch - cascading http inputs from Airflow API
- How to clean the html pages opened in a session?
- UTF-8 is not a valid encoding name
- I dont get the Result i expected when i want to get my Telegram Chatbot id
- NextJS 14 SSE with TransformStream() sending messages in a single response
Related Questions in HTTP-DELETE
- How to bulk delete all the users in an Auth0 tenant?
- Encountering Internal Server Error - How can I troubleshoot and resolve this issue in my web application?
- Delete request is not getting the Authorization header
- Faulty error response from WooCommerce Rest API Coupon Delete
- How to delete a TODO item list from DOM when I click delete button using JavaScript?
- Bash curl Delete with cookies
- DELETE index command returns varying JSON objects
- Instead calling api post and delete api alternative if i click on button fast then it call 2 time same api
- Does Wix Velo have a way to use http-delete protocol or fetch delete?
- InvalidDataAccessApiUsageException: ("Unable to locate persister: java.lang.Integer" ) on Http DELETE request in spring boot
- How to send a compound primary key in a HTTP DELETE request?
- How would i delete all logs in loki via its api?
- getting undefined id in delete function
- DELETE request is blocked by CORS with fetch API. It works with Postman
- Async Recursive Delete with cURL Without Removing Top-Level Directory
Related Questions in HTTP-METHOD
- Should i use GET or POST for request with body in DRF?
- Which HTTP method is correct for RPC over HTTP triggering asynchronous action eventually changing server status?
- Why django-admin uses POST to change password?
- What HTTP method should a route have if it's for create_or_delete
- Which url name should be used for api performing the membership withdrawal function
- Why does it return status code 405 instead of 401 unauthorized?
- how to remove "Request method 'GET' not supported' error from the screen in java
- No data added to MongoDB database collection on POST request through Postman
- How do I properly pass an group ID parameter into the GroupMe API
- Handle HEAD request with CefSharp
- Best Practices for retrieving data in MVC: Concerns about Using POST for Retrieval and Token Handling
- How to access the HTTP method within a Ballerina request interceptor
- I am getting casting exception while using delete .method of HTTP
- Does Google Cloud Run allow non-standard HTTP methods?
- Thunderclient api testing get error:Cannot get /api/users data
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The RFC 7231 defines the semantics of the HTTP
DELETEmethod.It expresses a deletion operation on the URI mapping (and it doesn't expect that the associated content will be actually deleted from the server). Whether the actual content will be deleted or not or whether it can be restored or not, is up to the server implementation.
See the quote below (highlights are mine):