Closed Geromatic closed 1 year ago
Some code omitted - converted nodejs to arduino http
http.setURL("/api/v1/logout"); http.addHeader("Content-Type", "application/json"); int httpResponseCode = http.GET(); Serial.print("HTTP Response code: "); Serial.println(httpResponseCode); String jsonString = http.getString(); Serial.println(jsonString);
returns success=true
HTTP Response code: 404
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Error</title> </head> <body> <pre>Cannot GET /api/v1/logout</pre> </body> </html>
Hi @Geromatic
/v1/auth/logout is an HTTP POST call. HTTP Response code 404 - Not found.
some of your api documentation needs to be fix
logout example is missing the header authorization token and uses GET
Sample code
Some code omitted - converted nodejs to arduino http
Expect
returns success=true
Result
HTTP Response code: 404