samples revisited after teched

This commit is contained in:
d049904
2019-10-24 12:03:37 +02:00
parent baaa5ef7d7
commit cc3aca29ef
92 changed files with 2424 additions and 100 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 ();
}