CRUD Operation Examples
More examples can be found in the lightblue-ldap-integration-test module.
Insert
The objectClass does need to be populated
NOTE: Insert can only project dn at this time.
{
"entity": "entityName",
"entityVersion": "1.0.0",
"projection": {
"field": "dn"
},
"data": [
{
"objectClass": ["top", "person", "organizationalPerson", "inetOrgPerson"],
"uid": "john.doe",
"givenName": "John",
"sn": "Doe",
"cn": "John Doe"
},
...
]
}
Find
NOTE: Sorts cannot be performed by dn, because it is technically not an attribute.
{
"entity": "entityName",
"entityVersion": "1.0.0",
"projection": [
{"field": "dn"},
{"field": "uid"},
{"field": "objectType"},
{"field": "objectClass#"}
],
"query": {
"field": "uid",
"op": "$eq",
"rvalue": "john.doe"
}
}
Save
Not yet implemented
Update
Not yet implemented
Delete
Not yet implemented