From b2da488dc9ce1ea43ecc08a2f963a833cec036d7 Mon Sep 17 00:00:00 2001 From: Christian Georgi Date: Mon, 15 Jan 2024 16:00:27 +0100 Subject: [PATCH] More links for `@path` --- cds/cdl.md | 2 ++ node.js/cds-serve.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cds/cdl.md b/cds/cdl.md index 2e1f34d84..c281335d3 100644 --- a/cds/cdl.md +++ b/cds/cdl.md @@ -1492,6 +1492,8 @@ The endpoint of the exposed service is constructed by its name, following some c service SomeService { ... } ``` +Learn more about [`@path` in Node.js](../node.js/cds-serve#cds-protocols) and in [Java](../java/application-services#configure-path-and-protocol). + ### Exposed Entities diff --git a/node.js/cds-serve.md b/node.js/cds-serve.md index 753102d72..9ea5517c3 100644 --- a/node.js/cds-serve.md +++ b/node.js/cds-serve.md @@ -92,7 +92,7 @@ This uses these defaults for all options: | .from | models to load definitions from | `'./srv'` folder | .in | express app to mount to | — none — | .to | client protocol to serve to | `'fiori'` -| .at | endpoint path to serve at | `@path` or `.name` +| .at | endpoint path to serve at | [`@path`](#path) or `.name` | .with | implementation function | `@impl` or `._source`.js Alternatively you can construct services individually, also from other models, and also mount them yourself, as document in the subsequent sections on individual fluent API options. @@ -144,7 +144,7 @@ cds.serve('CatalogService').at('/cat') cds.serve('all').at('/cat') //> error ``` -**If omitted**, the mount point is determined from annotation `@path`, if present, or from the service's lowercase name, excluding trailing _Service_. +**If omitted**, the mount point is determined from annotation [`@path`](#path), if present, or from the service's lowercase name, excluding trailing _Service_. ```cds service MyService @(path:'/cat'){...} //> served at: /cat