This commit is contained in:
Daniel
2020-03-02 00:08:49 +01:00
parent d9df2930cb
commit 26d7fc767c
71 changed files with 141 additions and 34 deletions

View File

@@ -0,0 +1 @@
using from './srv/services';

View File

@@ -0,0 +1,12 @@
{
"name": "@sap/capire-users",
"version": "1.0.0",
"description": "A reuse service for users-related functions, like registration, user profile mgmt, etc.",
"repository": "https://github.com/SAP-samples/cloud-cap-samples.git",
"license": "SAP SAMPLE CODE LICENSE",
"dependencies": {
"@sap/capire-contacts": "^1.0.0",
"@sap/cds": "latest",
"express": "*"
}
}

View File

@@ -0,0 +1,7 @@
using { sap.capire.contacts.Contacts as RegisteredUsers } from '@sap/capire-contacts';
namespace sap.capire.users;
service UsersService @(requires:'authenticated-user') {
entity MyProfile as select from RegisteredUsers;
action login ();
}