Commit 0ada369
feat: support for
* Rename protocols `path` config to `endpoint`
* Collect services and init adapter on served
* Extract service collection from `CDSGraphQLAdapter`
* Undo indentation
* Mount adapter at configured `endpoint`
* Remove newline
* Move services into options argument
* Bump required `@sap/cds` version to 7
* Allow newer major versions for `@sap/cds` devDependency
* Add changelog entries
* Add step to README about annotating services
* Add `@graphql` annotation to services used by `cds.test`
* Add tests for prorocol annotations and endpoint config
* Fix typos
* Add note about required protocol annotations to changelog entry
* Fix function name
* Fix path to `gql` tag util
* Fix path to annotations `cds.test` project
* Add missing `@graphql` annotation to test service
* Revert "Rename protocols `path` config to `endpoint`"
This reverts commit eca7148.
* Use `path` instead of `endpoint` as router path
* Extract `GraphQLAdapter` function as module
* Log serving protocol and path equivalent to cds 6
* Bump `cds` version in `devDependencies` to `>=7`
* Make `GraphQLAdapter` accessible via root `index.js`
* Import cds in CRUD resolvers
* Don't overwrite other configured protocols in annotations test project
* Adjust test project `server.js` files to not overwrite configured protocols
* Fix configured graphql path in tests
* Remove `GraphQLAdapter` exposed at root
* Adjust logging of mount path to match other protocols
* Improve function name
* Fix and improve changelog entries
* Improve function name
---------
Co-authored-by: Heiko Witteborg <[email protected]>
Co-authored-by: Johannes Vogel <[email protected]>@sap/cds^7 middlewares/protocols (#86)1 parent da008d5 commit 0ada369
File tree
25 files changed
+214
-45
lines changed- lib
- resolvers/crud
- test
- resources
- annotations
- srv
- bookshop-graphql
- srv
- cds.Request
- srv
- concurrency
- srv
- custom-handlers
- srv
- types
- srv
- tests
25 files changed
+214
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | | - | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 2 | + | |
| 3 | + | |
8 | 4 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
21 | 13 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 14 | + | |
| 15 | + | |
26 | 16 | | |
27 | 17 | | |
28 | | - | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments