From 1ee3c7930a8a230c27df8aa5def62bfadf0b0096 Mon Sep 17 00:00:00 2001 From: Alessandro Uffreduzzi Date: Tue, 26 Mar 2024 17:56:01 +0100 Subject: [PATCH] [IMP] base_rest: show first-level menu to admins only --- base_rest/README.rst | 4 +++- base_rest/readme/DESCRIPTION.rst | 4 +++- base_rest/static/description/index.html | 4 +++- base_rest/views/base_rest_view.xml | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/base_rest/README.rst b/base_rest/README.rst index f36ad418e..27c1fbde6 100644 --- a/base_rest/README.rst +++ b/base_rest/README.rst @@ -42,7 +42,9 @@ systems, therefore increasing maintenance costs. Once developed, an `OpenApi `_ documentation is generated from the source code and available via a `Swagger UI `_ served by your odoo server -at `https://my_odoo_server/api-docs`. +at `https://my_odoo_server/api-docs`. There is also a convenience menu +visible by users with permission "Administration: Settings", but the +docs endpoint itself is public. **Table of contents** diff --git a/base_rest/readme/DESCRIPTION.rst b/base_rest/readme/DESCRIPTION.rst index 96f88c974..d9b70ef78 100644 --- a/base_rest/readme/DESCRIPTION.rst +++ b/base_rest/readme/DESCRIPTION.rst @@ -12,4 +12,6 @@ systems, therefore increasing maintenance costs. Once developed, an `OpenApi `_ documentation is generated from the source code and available via a `Swagger UI `_ served by your odoo server -at `https://my_odoo_server/api-docs`. +at `https://my_odoo_server/api-docs`. There is also a convenience menu +visible by users with permission "Administration: Settings", but the +docs endpoint itself is public. diff --git a/base_rest/static/description/index.html b/base_rest/static/description/index.html index 928eb317f..383726ac0 100644 --- a/base_rest/static/description/index.html +++ b/base_rest/static/description/index.html @@ -381,7 +381,9 @@

Base Rest

Once developed, an OpenApi documentation is generated from the source code and available via a Swagger UI served by your odoo server -at https://my_odoo_server/api-docs.

+at https://my_odoo_server/api-docs. There is also a convenience menu +visible by users with permission “Administration: Settings”, but the +docs endpoint itself is public.

Table of contents

    diff --git a/base_rest/views/base_rest_view.xml b/base_rest/views/base_rest_view.xml index f78f9a86e..b3e51108b 100644 --- a/base_rest/views/base_rest_view.xml +++ b/base_rest/views/base_rest_view.xml @@ -2,11 +2,11 @@ - REST API base_rest,static/description/icon.png +