From e4f3950e2cff00ad917cb716b16b1a9855560287 Mon Sep 17 00:00:00 2001 From: Nicolas Hennion Date: Sun, 12 Nov 2017 17:09:17 +0100 Subject: [PATCH] Updated The Glances RESTFULL JSON API (markdown) --- The-Glances-RESTFULL-JSON-API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/The-Glances-RESTFULL-JSON-API.md b/The-Glances-RESTFULL-JSON-API.md index ca58382..53b82c4 100644 --- a/The-Glances-RESTFULL-JSON-API.md +++ b/The-Glances-RESTFULL-JSON-API.md @@ -14,7 +14,7 @@ The RESTful API is located at: `http://{glances server IP@}:61208/api/2` -Request example with Curl: +Memory stats request example with Curl: $ curl http://localhost:61208/api/2/mem {"available": 3627708416, "used": 4244357120, "cached": 2746822656, "percent": 53.9, "free": 3627708416, "inactive": 2100039680, "active": 4159094784, "shared": 384692224, "total": 7872065536, "buffers": 395943936} @@ -48,7 +48,7 @@ Server: WSGIServer/0.1 Python/2.7.12 From Glances version 3 and higher, support of Gzip encoding is provided (active by default with Httpie). For Curl, add the followings tags: - $ curl -H "Accept-encoding: gzip" --compressed -v http://localhost:61208/api/2/all + $ curl -H "Accept-encoding: gzip" --compressed -v http://localhost:61208/api/2/mem < Content-Encoding: gzip ***