adafruit / Adafruit_IO_Documentation

API documentation for Adafruit IO
https://io.adafruit.com/api/docs
Other
15 stars 19 forks source link

the curl request should specify the DELETE method #14

Closed robertoostenveld closed 3 years ago

robertoostenveld commented 3 years ago

here it explains how to delete a group. However, the curl example does not include the DELETE command and defaults to GET.

https://github.com/adafruit/Adafruit_IO_Documentation/blob/1081503ede6c4c3fd6f0763d9b0fa33e65fdf522/source/includes/http/_groups.md.erb#L526

It should be like this:

curl -X DELETE -H "X-AIO-Key: xxx" ...
brentru commented 3 years ago

@robertoostenveld Thanks for the catch - would you like to submit a pull request (https://github.com/adafruit/Adafruit_IO_Documentation/pulls)?

robertoostenveld commented 3 years ago

sure, will do!