Show current user name, locale and tenant (if available). Useful in deployments w/ real auth and tenant contexts.
18 lines
229 B
Plaintext
18 lines
229 B
Plaintext
/**
|
|
* Exposes user information
|
|
*/
|
|
@requires : 'authenticated-user'
|
|
service UserService {
|
|
|
|
/**
|
|
* The current user
|
|
*/
|
|
@odata.singleton
|
|
entity Me {
|
|
ID : String;
|
|
locale : String;
|
|
tenant : String;
|
|
}
|
|
|
|
}
|