diff --git a/packages/plugins/documentation/server/utils/builders/build-api-endpoint-path.js b/packages/plugins/documentation/server/utils/builders/build-api-endpoint-path.js index c74655b704..4c2e38c8c4 100644 --- a/packages/plugins/documentation/server/utils/builders/build-api-endpoint-path.js +++ b/packages/plugins/documentation/server/utils/builders/build-api-endpoint-path.js @@ -149,6 +149,7 @@ module.exports = api => { } // An api could have multiple contentTypes + let paths = {}; for (const contentTypeName of api.ctNames) { // Get the attributes found on the api's contentType const uid = `${api.getter}::${api.name}.${contentTypeName}`; @@ -169,6 +170,11 @@ module.exports = api => { tag, }; - return getPaths(apiInfo); + paths = { + ...paths, + ...getPaths(apiInfo).paths + } } + + return { paths }; };