[][src]Module lib::api

the outside-facing API

Functions

get_all_groups

GET /groups

get_all_users

GET /users Return a list of all users on the system, as defined in the /etc/passwd file.

get_group

GET /groups/ Return a single group with . Return 404 if is not found.

get_groups_for_user

GET /users//groups Return all the groups for a given user.

get_matching_groups

GET /groups/query[?name=][&gid=][&member=[&member=][&. ..]]

get_matching_users

GET /groups/query[?name=][&gid=][&member=[&member=][&. ..]] Return a list of groups matching all of the specified query fields. The bracket notation indicates that any of the following query parameters may be supplied: - name - gid - member (repeated)

get_user

GET /users/ Return a single user with . Return 404 if is not found. Example Response: {“name”: “dwoodlins”, “uid”: 1001, “gid”: 1001, “comment”: “”, “home”: “/home/dwoodlins”, “shell”: “/bin/false”}