@strapi/plugin-documentation 4.1.3 → 4.2.0-alpha.0

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.
@@ -89,7 +89,7 @@ const SettingsPage = () => {
89
89
  paddingLeft={7}
90
90
  paddingRight={7}
91
91
  >
92
- <Stack size={4}>
92
+ <Stack spacing={4}>
93
93
  <Typography variant="delta" as="h2">
94
94
  {formatMessage({
95
95
  id: getTrad('pages.SettingsPage.title'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-documentation",
3
- "version": "4.1.3",
3
+ "version": "4.2.0-alpha.0",
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.1.3",
28
- "@strapi/utils": "4.1.3",
27
+ "@strapi/helper-plugin": "4.2.0-alpha.0",
28
+ "@strapi/utils": "4.2.0-alpha.0",
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": "8549f5aca34f2a72bb477a1b305260f39f271f4e"
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
- return getPaths(apiInfo);
173
+ paths = {
174
+ ...paths,
175
+ ...getPaths(apiInfo).paths
176
+ }
173
177
  }
178
+
179
+ return { paths };
174
180
  };