Skip to content

MOD refactor member get put endpoint

Xavier Bonet requested to merge MOD_refactor_member_get_put_endpoint into main

Keycloak API need to use multiple specific calls (first DELETE and second PUT) to update the groups assignement to KC users so we have done a refactor of the previous/initial strategy.

The current member endpoint profile is (example):

  • Calling PUT throw http://odoo-ce.local:8069/api/member/8cee27a8-6a17-4354-87c0-47bdd807db59?role=role_ce_member:

returns: { "member": { "keycloak_id": "8cee27a8-6a17-4354-87c0-47bdd807db59", "name": "Marta Arce", "role": "role_ce_member", "email": "marta@jeje.cat" } }

  • calling GET throw http://odoo-ce.local:8069/api/member/8cee27a8-6a17-4354-87c0-47bdd807db59:

returns: { "member": { "keycloak_id": "8cee27a8-6a17-4354-87c0-47bdd807db59", "name": "Marta Arce", "role": "role_ce_member", "email": "marta@jeje.cat" } }

  • in boths GET/PUT the role attribute must have one of those values: [role_ce_member, role_ce_admin, role_platform_admin]

Merge request reports

Loading