From 167d6a2caa34822a46b358cba880396c2bd09721 Mon Sep 17 00:00:00 2001 From: "13621160019@163.com" <13621160019@163.com> Date: Tue, 7 Dec 2021 20:00:28 +0800 Subject: [PATCH] added access control to point in api and admin --- myems-api/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/myems-api/README.md b/myems-api/README.md index 4205a77e..2904679d 100644 --- a/myems-api/README.md +++ b/myems-api/README.md @@ -1190,7 +1190,7 @@ curl -i -X GET {{base_url}}/offlinemeterfiles/{id}/restore * GET Point by ID ```bash -curl -i -X GET {{base_url}}/points/{id} +curl -i -H "User-UUID: dcdb67d1-6116-4987-916f-6fc6cf2bc0e4" -H "Token: GET-TOKEN-AFTER-LOGIN" -X GET {{base_url}}/points/{id} ``` Result in JSON @@ -1225,7 +1225,7 @@ Result in JSON * GET all Points ```bash -curl -i -X GET {{base_url}}/points +curl -i -H "User-UUID: dcdb67d1-6116-4987-916f-6fc6cf2bc0e4" -H "Token: GET-TOKEN-AFTER-LOGIN" -X GET {{base_url}}/points ``` * DELETE Point by ID ```bash