Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for http DELETE #269

Open
apandichi opened this issue Sep 13, 2018 · 0 comments · May be fixed by #270
Open

Support for http DELETE #269

apandichi opened this issue Sep 13, 2018 · 0 comments · May be fixed by #270

Comments

@apandichi
Copy link

apandichi commented Sep 13, 2018

I'm trying to delete ACF data by issuing a DELETE http request:

http DELETE http://localhost/wp-json/acf/v3/sessions/4993

The response is:

HTTP/1.1 404 Not Found
Access-Control-Allow-Headers: Authorization, Content-Type
Access-Control-Expose-Headers: X-WP-Total, X-WP-TotalPages
Connection: keep-alive
Content-Type: application/json; charset=UTF-8
Date: Thu, 13 Sep 2018 14:18:44 GMT
Link: <http://localhost/wp-json/>; rel="https://api.w.org/"
Server: nginx/1.10.3 (Ubuntu)
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff
X-Powered-By: PHP/5.6.33-1+ubuntu16.04.1+deb.sury.org+1
X-Robots-Tag: noindex

{
    "code": "rest_no_route", 
    "data": {
        "status": 404
    }, 
    "message": "No route was found matching the URL and request method"
}

Issuing a GET request on that same URL returns HTTP/1.1 200 OK, including all the expected ACF data in the response.

@apandichi apandichi linked a pull request Sep 13, 2018 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant