Update API.md
This commit is contained in:
parent
7b9a48338c
commit
bd737849e3
12
API.md
12
API.md
|
@ -158,18 +158,20 @@ Special properties of `request`:
|
|||
--------------------------------
|
||||
|
||||
```js
|
||||
req.apiUrlPrefix // This represents the full package path
|
||||
// without any package specific endpoints
|
||||
// i.e. https://api.example.com/api/tld.domain.pkg
|
||||
req.apiUrlPrefix // This represents the full package path without any package specific endpoints
|
||||
// This is particularly useful when constructing webhook URLs
|
||||
// i.e. https://api.example.com/api/pkg@domain.tld
|
||||
// (of https://api.example.com/api/pkg@domain.tld/public/foo)
|
||||
|
||||
req.experienceId // The instance name of an app as a whole, where an app is mounted
|
||||
// i.e. the 'example.com' part of https://example.com/foo
|
||||
// OR 'example.com#foo' if '/foo' is part of the app's mount point
|
||||
|
||||
req.clientApiUri // The api URL for the instance of an app
|
||||
// the 'api.example.com' part of https://api.example.com/api/com.example.hello/kv/foo
|
||||
// i.e. the 'api.example.com' part of https://api.example.com/api/hello@example.com/kv/foo
|
||||
|
||||
req.pkgId // the com.example.hello part of https://api.example.com/api/com.example.hello/kv/foo
|
||||
req.pkgId // The name of the package being accessed
|
||||
// i.e. the 'hello@example.com' part of https://api.example.com/api/hello@example.com/kv/foo
|
||||
|
||||
req.getSiteStore().then(function (models) {
|
||||
req.Models = models;
|
||||
|
|
Loading…
Reference in New Issue