@strapi/plugin-documentation 4.1.3 → 4.2.0-alpha.O
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-documentation",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0-alpha.O",
|
|
4
4
|
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"test": "echo \"no tests yet\""
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@strapi/helper-plugin": "4.
|
|
28
|
-
"@strapi/utils": "4.
|
|
27
|
+
"@strapi/helper-plugin": "4.2.0-alpha.O",
|
|
28
|
+
"@strapi/utils": "4.2.0-alpha.O",
|
|
29
29
|
"bcryptjs": "2.4.3",
|
|
30
30
|
"cheerio": "^1.0.0-rc.5",
|
|
31
31
|
"fs-extra": "10.0.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
|
|
58
58
|
"kind": "plugin"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "0e1f1ae08565a5f2427753582f37645a43c00cb2"
|
|
61
61
|
}
|
|
@@ -149,6 +149,7 @@ module.exports = api => {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
// An api could have multiple contentTypes
|
|
152
|
+
let paths = {};
|
|
152
153
|
for (const contentTypeName of api.ctNames) {
|
|
153
154
|
// Get the attributes found on the api's contentType
|
|
154
155
|
const uid = `${api.getter}::${api.name}.${contentTypeName}`;
|
|
@@ -169,6 +170,11 @@ module.exports = api => {
|
|
|
169
170
|
tag,
|
|
170
171
|
};
|
|
171
172
|
|
|
172
|
-
|
|
173
|
+
paths = {
|
|
174
|
+
...paths,
|
|
175
|
+
...getPaths(apiInfo).paths
|
|
176
|
+
}
|
|
173
177
|
}
|
|
178
|
+
|
|
179
|
+
return { paths };
|
|
174
180
|
};
|