From bc9315425f5f4f0e95756cbc24440a66edeced5f Mon Sep 17 00:00:00 2001
From: Adrien Morais <amorais@centreon.com>
Date: Wed, 4 Apr 2018 12:22:12 +0200
Subject: [PATCH] fix(doc): Add documentation on API Rest permissions

REFS: MON-2421
---
 doc/en/api/api_rest/index.rst | 14 ++++++++++++--
 doc/fr/api/api_rest/index.rst | 13 +++++++++++--
 2 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/doc/en/api/api_rest/index.rst b/doc/en/api/api_rest/index.rst
index a8d2cd2623..ff4bbcada3 100644
--- a/doc/en/api/api_rest/index.rst
+++ b/doc/en/api/api_rest/index.rst
@@ -17,8 +17,18 @@ Permissions
 -----------
 
 To perform API calls using a specific Centreon user, you need permissions to do so.
-You have to edit user settings on the menu **Configuration > Users > Contacts/Users**,
-edit user and on second tab check box **Reach API**.
+
+There are two types of permission:
+
+You can give access to the configuration for a specific Centreon user. To do so you have
+to edit user settings on the menu **Configuration > Users > Contacts/Users**,
+edit user and on second tab check box **Reach API Configuration**.
+
+You can give access to the realtime for a specific Centreon user. To do so you have
+to edit user settings on the menu **Configuration > Users > Contacts/Users**,
+edit user and on second tab check box **Reach API Realtime**.
+
+If you want both then check **both** checkboxes
 
 
 Authentication
diff --git a/doc/fr/api/api_rest/index.rst b/doc/fr/api/api_rest/index.rst
index cbfc29e463..74c11a7744 100644
--- a/doc/fr/api/api_rest/index.rst
+++ b/doc/fr/api/api_rest/index.rst
@@ -17,9 +17,18 @@ Permissions
 -----------
 
 To perform API calls using a specific Centreon user, you need permissions to do so.
-You have to edit user settings on the menu **Configuration > Users > Contacts/Users**,
-edit user and on second tab check box **Reach API**.
 
+There are two types of permission:
+
+You can give access to the configuration for a specific Centreon user. To do so you have
+to edit user settings on the menu **Configuration > Users > Contacts/Users**,
+edit user and on second tab check box **Reach API Configuration**.
+
+You can give access to the realtime for a specific Centreon user. To do so you have
+to edit user settings on the menu **Configuration > Users > Contacts/Users**,
+edit user and on second tab check box **Reach API Realtime**.
+
+If you want both then check **both** checkboxes
 
 Authentication
 ----------------
-- 
GitLab