Ping
Test your authentication works.
GET /api/ping
Returns:
-
200 OKon a valid tokenjson {"username": "your-username"} -
401 Unauthorisedif the token is missing or invalidjson {"error": "Authentication required."}
Test your authentication works.
Returns:
200 OK on a valid token
json
{"username": "your-username"}
401 Unauthorised if the token is missing or invalid
json
{"error": "Authentication required."}