From 7e8dc0f109728b9011549b0394f0d5035f94207a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20OUDOT?= Date: Fri, 17 Jun 2022 17:35:06 +0200 Subject: [PATCH] Update doc for REST service (#2709) --- doc/sources/admin/restservices.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/sources/admin/restservices.rst b/doc/sources/admin/restservices.rst index 5e2065955..41a7d0211 100644 --- a/doc/sources/admin/restservices.rst +++ b/doc/sources/admin/restservices.rst @@ -49,7 +49,8 @@ The JSON response fields are: - ``error``: error code, the corresponding error can be found in :doc:`Portal error codes` - ``id``: if authentication succeed, the session id is returned in this - field + field. This id is not returned if you call the REST endpoint with the + session cookie (which means you are already authenticated). .. tip:: @@ -62,7 +63,7 @@ The JSON response fields are: Before version 2.0.4, the response to a success authentication had no ``id`` field, and ``error`` field was named - ``code`` (use Cookie header to get id value). + ``code``. Example ^^^^^^^