new messaging

This commit is contained in:
D065023
2020-09-15 15:30:14 +02:00
parent 6fdd91b8c8
commit a71aaf75a1
8 changed files with 17 additions and 22 deletions

View File

@@ -2,17 +2,10 @@ using { sap.capire.reviews as my } from '../db/schema';
service ReviewsService {
// Sync API
entity Reviews as projection on my.Reviews excluding { likes }
action like (review: type of Reviews:ID);
action unlike (review: type of Reviews:ID);
// Async API
event reviewed : {
subject: type of Reviews:subject;
rating: Decimal(2,1)
};
// Input validation
annotate Reviews with {
subject @mandatory;