Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory-plugins fusiondirectory-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 59
    • Issues 59
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectory-pluginsfusiondirectory-plugins
  • Wiki
  • RestWebservice

RestWebservice · Changes

Page history
Update RestWebservice authored May 21, 2019 by jswaelens's avatar jswaelens
Hide whitespace changes
Inline Side-by-side
RestWebservice.md
View page @ ee3e1f17
......@@ -25,6 +25,15 @@ $ curl -X GET -H "Session-Token: 61o9679ov4741a2shgs7afpb70" "http://192.168.56.
"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
### Listing users
......@@ -86,4 +95,22 @@ $ curl -X GET -H "Session-Token: 61o9679ov4741a2shgs7afpb70" "http://192.168.56.
"employeeType": "",
"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
Clone repository
  • FusiondirectoryIPAM
  • LSC
  • LdapAlias
  • Modifying group member types
  • RestWebservice
    • addUpdateUser
    • addUpdateUserMultivaluated
    • createUser
    • deleteUser
  • SupannSupport
  • UserReminder
  • deployment features
  • fd lsc backend
  • fd lsc zimbra
  • filters acl
View All Pages