nomad-hzb / nomad-hysprint

Apache License 2.0
3 stars 2 forks source link

Create groups for SE-ALM #14

Open RoteKekse opened 3 weeks ago

RoteKekse commented 3 weeks ago

Here are some endpoints

response = requests.get(
    f'{url}/users?prefix=Götte', headers={'Authorization': f'Bearer {token}'})
data = response.json()["data"]
print(data)
d = {
  "group_name": "TestGroup2",
  "members": [
    a.get("user_id") for a in data
  ]
}
response = requests.post(
    f'{url}/groups', headers={'Authorization': f'Bearer {token}'}, json=d)
groups = response.json()
print(groups)

response = requests.get(
    f'{url}/groups', headers={'Authorization': f'Bearer {token}'})
response.json()

Pls check who should be liong to the group and also then add the group to all MMB uploads :)