From 9ea5453e7ead4de0bec74b46b699897c19d8cf48 Mon Sep 17 00:00:00 2001 From: Peter Suna Date: Wed, 15 Jan 2025 13:54:21 +0100 Subject: [PATCH] Remove redundant module name prefix in docs Remove unnecessary module name prefixes from example json body. "If a data node is defined in a submodule, then the namespace-qualified member name uses the name of the main module to which the submodule belongs." https://www.rfc-editor.org/rfc/rfc7951.html#section-4 Change-Id: I5bcc34beafa6979a2e8b59d055e6604564c65969 Signed-off-by: Peter Suna --- README.md | 12 ++++++------ docs/dev-guide.rst | 12 ++++++------ docs/user-guide.rst | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 80146ef14..44158ee6c 100644 --- a/README.md +++ b/README.md @@ -160,14 +160,14 @@ Body: ```json { "aaa:policies": { - "aaa:policies": [ + "policies": [ { - "aaa:resource": "/rests/modules/**", - "aaa:index": 1, - "aaa:permissions": [ + "resource": "/rests/modules/**", + "index": 1, + "permissions": [ { - "aaa:role": "admin", - "aaa:actions": [ + "role": "admin", + "actions": [ "get","post","put","patch","delete" ] } diff --git a/docs/dev-guide.rst b/docs/dev-guide.rst index 0ed8ee8b3..0f79f6623 100644 --- a/docs/dev-guide.rst +++ b/docs/dev-guide.rst @@ -417,14 +417,14 @@ This an example on how to limit access to the modules endpoint: body: { "aaa:policies": { - "aaa:policies": [ + "policies": [ { - "aaa:resource": "/rests/modules/**", - "aaa:index": 1, - "aaa:permissions": [ + "resource": "/rests/modules/**", + "index": 1, + "permissions": [ { - "aaa:role": "admin", - "aaa:actions": [ + "role": "admin", + "actions": [ "get", "post", "put", diff --git a/docs/user-guide.rst b/docs/user-guide.rst index 68a3d25f3..46e2ce205 100644 --- a/docs/user-guide.rst +++ b/docs/user-guide.rst @@ -860,14 +860,14 @@ This an example on how to limit access to the modules endpoint: body: { "aaa:policies": { - "aaa:policies": [ + "policies": [ { - "aaa:resource": "/rests/modules/**", - "aaa:index": 1, - "aaa:permissions": [ + "resource": "/rests/modules/**", + "index": 1, + "permissions": [ { - "aaa:role": "admin", - "aaa:actions": [ + "role": "admin", + "actions": [ "get", "post", "put", -- 2.36.6