-
I've implemented support for returning
fullNamefield in the/rest/userendpoint (in Groovy script) to allow it to be synced to 1dev (using our extension for 1dev).Additionally, I've added it to future
/rest/userendpoint handler (UserHandler.java). Additionally, I've allowed this future endpoint to not only return full name but to also update it in Tigase XMPP Server user vcard.Those changes in are separate branch
rest-user-extas I'm not fully convinced to them. While havingfullNamethere is useful it adds additional load on this endpoint, I'm thinking that moving vcard management (including retrieval) to a separate endpoint would be a better idea.That could force us in our 1dev extension to call Tigase endpoints twice, but it would give us clean separation of context (user vs vcard).
@wojtek What do you think?
Please note, that as I've looked at current
/rest/usergroovy script and compared it toUserHandler.javathere is a different feature set offered by both. I think that we should decided on what this endpoint should do and offer only that in the new handler (in Java).Also, I wonder if that wouldn't be a good time to switch our integration (for 1dev and other apps) to use this new endpoints written in Java? Those are disabled for now, but we could enable them as at some point we would disable old groovy scripts.
@kobit What do you think about?
-
I've implemented support for returning
fullNamefield in the/rest/userendpoint (in Groovy script) to allow it to be synced to 1dev (using our extension for 1dev).Additionally, I've added it to future
/rest/userendpoint handler (UserHandler.java). Additionally, I've allowed this future endpoint to not only return full name but to also update it in Tigase XMPP Server user vcard.Those changes in are separate branch
rest-user-extas I'm not fully convinced to them. While havingfullNamethere is useful it adds additional load on this endpoint, I'm thinking that moving vcard management (including retrieval) to a separate endpoint would be a better idea.That could force us in our 1dev extension to call Tigase endpoints twice, but it would give us clean separation of context (user vs vcard).
@wojtek What do you think?
We already have separate endpoint for avatar?
As for limiting load? Maybe add the information conditionally on parameter (e.g:
?includeVcardInfo=trueor somesuch). IMHO it should be the best - we need this info eitehr way and if we care about load, limiting number of calls to Tigase REST is also good. -
I was considering adding parameter for that (to enable additional data being returned).
I was considering having a separate
/vcardendpoint to make it possible to make changes and fetch data from vcard using REST API while at the same time keep it separated from/userdata (account details). Separation of scopes of data (data domains). I wouldn't like to push everything from vcard to/userendpoint as it would end up being huge (even if some data would be returned if parameter would be passed).
| Type |
New Feature
|
| Priority |
Normal
|
| Assignee | |
| Version |
none
|
| Sprints |
n/a
|
| Customer |
n/a
|
Expose full name/nickname from VCard4 in /rest/user endpoint for easy retrieval by authenticators (for sync with other systems) and to make it easily configurable from the external systems.