dinukadesilva opened a new issue #195:
URL: https://github.com/apache/airavata-custos/issues/195


   Following endpoints [1] returns the attributes as an array of `{"key": 
"string", "values": []}` while the endpoint [2] returns it as `{"key": 
"string", "value": []}`. 
   
   
   ```
   [1] GET 
https://custos.scigap.org/apiserver/user-management/v1.0.0/users?offset=0&limit=10&client_id=custos-6nwoqodstpe5mvcq09lh-10000101&user.id=isjarana
   
   {
    "users": [
     {
      "id": "",
      "username": "admin",
      "first_name": "Jhon",
      "last_name": "Smith",
      "password": "",
      "email": "[email protected]",
      "temporary_password": false,
      "realm_roles": [
       "admin",
       "offline_access",
       "uma_authorization"
      ],
      "client_roles": [],
      "attributes": [],
      "state": "ACTIVE",
      "creation_time": 1586310938731,
      "last_login_at": 0
     },
   ...
    ]
   }
   ```
   
   ```
   [2] PUT 
https://custos.scigap.org/apiserver/user-management/v1.0.0/user/profile
   
   {
    "username": "isjarana",
    "email": "[email protected]",
    "first_name": "Isuru",
    "last_name": "Ranawaka j",
    "created_at": "1588023936000",
    "status": "ACTIVE",
    "attributes": [
     {
      "id": "0",
      "key": "a",
      "value": [
       ""
      ]
     },
     {
      "id": "0",
      "key": "b",
      "value": [
       ""
      ]
     }
    ],
    "client_roles": [],
    "realm_roles": [
     "admin",
     "uma_authorization",
     "offline_access"
    ],
    "last_modified_at": "1623198165000",
    "type": "END_USER",
    "membership_type": ""
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to