Please note that this challenge is closed. The deadline for receiving a badge upon successful completion has passed. Check out this new challenge for the month of August.
Welcome to the first week of this month's SAP Developer Challenge. This week we are going to learn how to get started with the SAP Cloud Application Programming Model (CAP) and domain modeling. If you haven't read the announcement blog post for this challenge, please head over and do so.
The objective this week is to build a CAP service, that can track golf rounds. Yes, you read that right – golf rounds ⛳️🏌🏽. This is a completely artificial scenario that we made up, but it lends itself pretty well to practice a few basic CAP features.
We have prepared a starter project (link to CodeSandbox below) that already contains the entity "Rounds" and exposes it via a service. It is your job to enrich this existing service.
This is what you have to do to successfully complete this week's challenge:
Go to the CodeSandboxand fork it. You have to have an account with CodeSandbox and be be signed in to be able to do that.
Work on the project so it represents the following relationships:
The service should track who entered a new round and when it was entered (hint: managed entities).
Note: If you encounter issues with your dev server not starting properly, check your cds syntax. Unfortunately, the CodeSandbox doesn't have syntax highlighting for cds and it may not provide clear error messages. One useful approach is to comment out sections of code until the server starts, then gradually uncomment to isolate the problematic line.