You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,8 @@ __Options:__
83
83
### `service.id`
84
84
85
85
Defines the name of the id in the swagger path, by default it is `'id'`;
86
+
This can also be an array, if multiple ids are used. For example with feathers-objection or feathers-cassandra.
87
+
For services that extend adapter-commons this is set as parameter in the options when initializing the service.
86
88
87
89
### `service.docs`
88
90
@@ -119,7 +121,7 @@ __Options:__
119
121
-`tags` (*optional*) - Give multiple tags
120
122
-`model` (*optional*) - Override model that is parsed from path
121
123
-`modelName` (*optional*) - Override modelName that is parsed from path
122
-
-`idType` (*optional*) - The swagger type of ids used in paths for this service. value can be an array of types when `service.id` is set to array.
124
+
-`idType` (*optional*) - The swagger type of ids used in paths for this service. Value can be an array of types when `service.id` is set as an array.
123
125
-`idNames` (*optional*) - Object with path parameter names, to customize the idName on operation / method level
124
126
-`get`|`update`|`patch`|`remove` - name of the path parameter for the specific method, use service.id to change it for all
125
127
-`definition`(also `schema` for openapi v3) (*optional*) - Swagger definition of the model of the service, will be merged into global definitions (with all additional generated definitions)
0 commit comments