igniterealtime / REST-API-Client

Java REST API Client for the Openfire to manage Openfire instances by sending an REST/HTTP request to the server
Apache License 2.0
102 stars 62 forks source link

UserEntity‘s filed properties , how to work? #32

Closed 1528992118 closed 5 years ago

1528992118 commented 5 years ago

As you can see , I used restApiClient.getUsers(), here's my return. Why these properties are all empty ? I want to know these properties are extra information from user table or other ? Sorry to bother you. I can't find introduce from REST API Plugin Readme

{
    "users": [{
            "email": "051338",
            "name": "051338",
            "password": null,
            "properties": [],
            "username": "051338"
        },
        {
            "email": "050140",
            "name": "050140",
            "password": null,
            "properties": [],
            "username": "050140"
        }
    ]
}
Redor commented 5 years ago

Hey such I remember, properties is a separate table which is linked with user table. Try to create a user with properties with the rest api client, and you should able to see entries there.

1528992118 commented 5 years ago

OK,thans for your answer.