Skip to content

Commit 677aa26

Browse files
committed
Enhance documentation in CatalogService and enable model documentation in application.yaml
1 parent 4b76e1e commit 677aa26

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

srv/cat-service.cds

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
using {my.bookshop as my} from '../db/index';
22

3+
/**
4+
* CatalogService exposes the Books, Authors, Reviews, and GenreHierarchy entities.
5+
* It also defines actions for adding reviews and submitting orders.
6+
*/
37
@path : 'browse'
48
@odata.apply.transformations
59
service CatalogService @(requires: 'any') {
610
/**
711
* Doc comment: Books entity projection with addReview action
812
*/
9-
@description: '@description: Books entity projection with addReview action'
13+
//@description: '@description: Books entity projection with addReview action'
1014
@readonly
1115
entity Books as projection on my.Books excluding {
1216
createdBy,

srv/src/main/resources/application.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ spring:
66
jmx:
77
enabled: true
88
cds:
9+
model.includeDocumentation: true
910
mcp.autoWired.enabled: true
1011
telemetry.devOutput.enabled: false
1112
errors:

0 commit comments

Comments
 (0)