speedly 1.2.45 → 1.2.46
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.
|
@@ -126,6 +126,54 @@ function routeAnalyzer(route, routerName) {
|
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
+
// Response
|
|
130
|
+
doc.responses = {
|
|
131
|
+
"200": {
|
|
132
|
+
content: {
|
|
133
|
+
"application/json": {
|
|
134
|
+
schema: {
|
|
135
|
+
type: "object",
|
|
136
|
+
properties: {
|
|
137
|
+
message: { type: "string", example: "find successfully" },
|
|
138
|
+
content: {
|
|
139
|
+
oneOf: [
|
|
140
|
+
{
|
|
141
|
+
type: "array",
|
|
142
|
+
items: {
|
|
143
|
+
type: "object",
|
|
144
|
+
properties: {
|
|
145
|
+
id: { type: "string" },
|
|
146
|
+
name: { type: "string" },
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
type: "object",
|
|
152
|
+
properties: {
|
|
153
|
+
id: { type: "string" },
|
|
154
|
+
name: { type: "string" },
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
"400": {
|
|
165
|
+
content: {
|
|
166
|
+
"application/json": {
|
|
167
|
+
schema: {
|
|
168
|
+
type: "object",
|
|
169
|
+
properties: {
|
|
170
|
+
message: { type: "string", example: "module not found" },
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
};
|
|
129
177
|
// Auth
|
|
130
178
|
const auth = getAuthStatus(detail.middlewares);
|
|
131
179
|
if (auth.type === "required") {
|
|
@@ -126,6 +126,54 @@ function routeAnalyzer(route, routerName) {
|
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
+
// Response
|
|
130
|
+
doc.responses = {
|
|
131
|
+
"200": {
|
|
132
|
+
content: {
|
|
133
|
+
"application/json": {
|
|
134
|
+
schema: {
|
|
135
|
+
type: "object",
|
|
136
|
+
properties: {
|
|
137
|
+
message: { type: "string", example: "find successfully" },
|
|
138
|
+
content: {
|
|
139
|
+
oneOf: [
|
|
140
|
+
{
|
|
141
|
+
type: "array",
|
|
142
|
+
items: {
|
|
143
|
+
type: "object",
|
|
144
|
+
properties: {
|
|
145
|
+
id: { type: "string" },
|
|
146
|
+
name: { type: "string" },
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
type: "object",
|
|
152
|
+
properties: {
|
|
153
|
+
id: { type: "string" },
|
|
154
|
+
name: { type: "string" },
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
"400": {
|
|
165
|
+
content: {
|
|
166
|
+
"application/json": {
|
|
167
|
+
schema: {
|
|
168
|
+
type: "object",
|
|
169
|
+
properties: {
|
|
170
|
+
message: { type: "string", example: "module not found" },
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
};
|
|
129
177
|
// Auth
|
|
130
178
|
const auth = getAuthStatus(detail.middlewares);
|
|
131
179
|
if (auth.type === "required") {
|