|
@@ -15,9 +15,6 @@ const express = require('express');
|
|
|
const multer = require('multer');
|
|
const multer = require('multer');
|
|
|
|
|
|
|
|
|
|
|
|
|
-const GrowiArchiveImportOption = require('~/models/admin/growi-archive-import-option');
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
const router = express.Router();
|
|
const router = express.Router();
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -26,6 +23,21 @@ const router = express.Router();
|
|
|
* name: Import
|
|
* name: Import
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * @swagger
|
|
|
|
|
+ *
|
|
|
|
|
+ * components:
|
|
|
|
|
+ * schemas:
|
|
|
|
|
+ * GrowiArchiveImportOption:
|
|
|
|
|
+ * description: GrowiArchiveImportOption
|
|
|
|
|
+ * type: object
|
|
|
|
|
+ * properties:
|
|
|
|
|
+ * mode:
|
|
|
|
|
+ * description: Import mode
|
|
|
|
|
+ * type: string
|
|
|
|
|
+ * enum: [insert, upsert, flushAndInsert]
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @swagger
|
|
* @swagger
|
|
|
*
|
|
*
|
|
@@ -185,12 +197,7 @@ export default function route(crowi) {
|
|
|
* additionalProperties:
|
|
* additionalProperties:
|
|
|
* type: array
|
|
* type: array
|
|
|
* items:
|
|
* items:
|
|
|
- * type: object
|
|
|
|
|
- * properties:
|
|
|
|
|
- * mode:
|
|
|
|
|
- * description: Import mode
|
|
|
|
|
- * type: string
|
|
|
|
|
- * enum: [insert, upsert, flushAndInsert]
|
|
|
|
|
|
|
+ * $ref: '#/components/schemas/GrowiArchiveImportOption'
|
|
|
* responses:
|
|
* responses:
|
|
|
* 200:
|
|
* 200:
|
|
|
* description: Import process has requested
|
|
* description: Import process has requested
|