From: Eduardo Sousa Date: Tue, 4 Jun 2019 13:10:15 +0000 (+0100) Subject: Fix bug 732 X-Git-Tag: v6.0.0~14 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=commitdiff_plain;h=b6a5819d7daefde450ab263a4a57a6d173255ee0;hp=c4650365704d7827e53280ca16f9bdb70bf9fcbb Fix bug 732 Change-Id: I4d50aaf644849df989963052bd94a61c64b84db5 Signed-off-by: Eduardo Sousa --- diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index a43336d..20e0520 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -221,7 +221,7 @@ class Server(object): "": {"METHODS": ("GET", "DELETE", "PUT")} }, "roles": {"METHODS": ("GET", "POST"), - "": {"METHODS": ("GET", "POST", "DELETE")} + "": {"METHODS": ("GET", "POST", "DELETE", "PUT")} }, "vims": {"METHODS": ("GET", "POST"), "": {"METHODS": ("GET", "DELETE", "PATCH", "PUT")} diff --git a/osm_nbi/resources_to_operations.yml b/osm_nbi/resources_to_operations.yml index 3a94de2..4b35d27 100644 --- a/osm_nbi/resources_to_operations.yml +++ b/osm_nbi/resources_to_operations.yml @@ -276,6 +276,8 @@ resources_to_operations: "DELETE /admin/v1/roles/": "roles:id:delete" + "PUT /admin/v1/roles/": "roles:id:put" + ################################################################################ ##################################### PDUDs #################################### ################################################################################