add getUser method
This commit is contained in:
committed by
Daniel Hutzel
parent
0690762207
commit
30d5c789bc
@@ -1,6 +1,27 @@
|
||||
using {sap.capire.media.store as my} from '../db/schema';
|
||||
|
||||
service UserService {
|
||||
|
||||
@restrict : [{
|
||||
grant : '*',
|
||||
to : 'employee'
|
||||
}]
|
||||
entity Customers as projection on my.Customers;
|
||||
|
||||
@(requires : 'authenticated-user')
|
||||
function getUser() returns {
|
||||
lastName : String(20);
|
||||
firstName : String(40);
|
||||
city : String(40);
|
||||
state : String(40);
|
||||
address : String(70);
|
||||
country : String(40);
|
||||
postalCode : String(10);
|
||||
phone : String(24);
|
||||
fax : String(24);
|
||||
email : String(60);
|
||||
};
|
||||
|
||||
function mockLogin(email : String(111), password : String(200)) returns {
|
||||
roles : array of String(111);
|
||||
level : Integer;
|
||||
|
||||
Reference in New Issue
Block a user