Skip to content

Commit e38dc4d

Browse files
feat: added endpoint attribute to api-body-document
1 parent e8a705b commit e38dc4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ApiMethodDocumentation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) {
10081008
}
10091009

10101010
_getBodyTemplate() {
1011-
const { payload, payloadDescription, bindings } = this;
1011+
const { payload, payloadDescription, bindings, endpoint } = this;
10121012
if (!payload || !payload.length) {
10131013
return '';
10141014
}
@@ -1024,6 +1024,7 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) {
10241024
?narrow="${narrow}"
10251025
?compatibility="${compatibility}"
10261026
?graph="${graph}"
1027+
.endpoint="${endpoint}"
10271028
.body="${payload}"
10281029
.bodyDescription="${payloadDescription}"
10291030
.bindings="${bindings}"

0 commit comments

Comments
 (0)