... | @@ -25,6 +25,15 @@ $ curl -X GET -H "Session-Token: 61o9679ov4741a2shgs7afpb70" "http://192.168.56. |
... | @@ -25,6 +25,15 @@ $ curl -X GET -H "Session-Token: 61o9679ov4741a2shgs7afpb70" "http://192.168.56. |
|
"61o9679ov4741a2shgs7afpb70"
|
|
"61o9679ov4741a2shgs7afpb70"
|
|
```
|
|
```
|
|
|
|
|
|
|
|
### Logout
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ curl -X POST -H "Session-Token: 61o9679ov4741a2shgs7afpb70" "http://192.168.56.100/fusiondirectory/rest.php/v1/logout" | jq .
|
|
|
|
% Total % Received % Xferd Average Speed Time Time Time Current
|
|
|
|
Dload Upload Total Spent Left Speed
|
|
|
|
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
|
|
|
|
```
|
|
|
|
|
|
## Objets
|
|
## Objets
|
|
|
|
|
|
### Listing users
|
|
### Listing users
|
... | @@ -87,3 +96,21 @@ $ curl -X GET -H "Session-Token: 61o9679ov4741a2shgs7afpb70" "http://192.168.56. |
... | @@ -87,3 +96,21 @@ $ curl -X GET -H "Session-Token: 61o9679ov4741a2shgs7afpb70" "http://192.168.56. |
|
"manager": ""
|
|
"manager": ""
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
|
|
|
### Set an attribute
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ curl -X PUT -H "Session-Token: 61o9679ov4741a2shgs7afpb70" "http://192.168.56.100/fusiondirectory/rest.php/v1/objects/user/uid=toto,ou=people,dc=my-domain,dc=com/user/givenName" --data '"newname"' | jq .
|
|
|
|
% Total % Received % Xferd Average Speed Time Time Time Current
|
|
|
|
Dload Upload Total Spent Left Speed
|
|
|
|
100 9 0 0 100 9 0 107 --:--:-- --:--:-- --:--:-- 107
|
|
|
|
```
|
|
|
|
|
|
|
|
### Set multivaluated attribute
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ curl -X PATCH -H "Session-Token: 61o9679ov4741a2shgs7afpb70" "http://192.168.56.100/fusiondirectory/rest.php/v1/objects/user/uid=toto,ou=people,dc=my-domain,dc=com/user/title" --data '["mytitle"]' | jq .
|
|
|
|
% Total % Received % Xferd Average Speed Time Time Time Current
|
|
|
|
Dload Upload Total Spent Left Speed
|
|
|
|
100 11 0 0 100 11 0 96 --:--:-- --:--:-- --:--:-- 97
|
|
|
|
``` |
|
|
|
\ No newline at end of file |