Hello Gennady,
The use case for these APIs is creation of user with custom username. Currently after a call to /api/user/create user id is auto generated and the list of aliases is empty.
One possible solution for this use-case is adding these APIs. The DELETE API is optional and is needed just for integrity reasons:
POST /api/user/alias – Addition of specified alias to the list of aliases of current user
DELETE /api/user/alias/${alias_name} – Deletion specified alias from the list of aliases of current user
Second solution is adding a “aliases” parameter to /api/user/create API, so the new user would already have the supplied aliases. Second solution is preferable.
Regards,
Alexander
From: che-dev-bounces@xxxxxxxxxxx [mailto:che-dev-bounces@xxxxxxxxxxx]
On Behalf Of Gennady Azarenkov
Sent: Friday 08 May 2015 19:57
To: che developer discussions
Subject: Re: [che-dev] Assigning alias to created user
Hi Alexander,
Yes sure, just please give some more details about usecases you have in mind for this service to make sure we are talking about the same things
Cheers,
On Thu, May 7, 2015 at 5:20 PM, Bolshakov, Alexander <alexander.bolshakov@xxxxxxx> wrote:
Hello Sergii,
Would contribution of following extension of APIs be acceptable?
1)
POST /api/user/alias
2)
DELETE /api/user/alias/${alias_name}
From:
che-dev-bounces@xxxxxxxxxxx [mailto:che-dev-bounces@xxxxxxxxxxx]
On Behalf Of Sergii Kabashniuk
Sent: Thursday 07 May 2015 16:36
To: che developer discussions
Subject: Re: [che-dev] Assigning alias to created user
Right now we have no such ability.
We had this feature in our mind when we developing User API.
Generally speaking in future we want to have something like on Github,
when user is able to associate with his identity record several aliases aka email.
On Thu, May 7, 2015 at 10:08 AM, Bolshakov, Alexander <alexander.bolshakov@xxxxxxx> wrote:
Hello Che developers,
I wonder if there is an API to assign aliases to newly created Che users, as far as I understand from code no such API exists. When new Che user is created (POST to api/user/create)
its id is automatically generated by user service and aliases list is empty. Is there a way to assign a human-readable alias to this user?
Best Regards,
Alexander Bolshakov
Developer
Cloud Expirience DevX DI Core
SAP Labs Israel Ltd. 15 Hatidhar St. Ra'anana 43665 Israel
Tel:
+972 9 7779677 ; Mobile: +972 54 927546 ; Fax: +972 7 47609677
_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev
_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev
|