Supprimer la documentation Swagger obsolète dans plusieurs fichiers de routes
This commit is contained in:
@@ -12,39 +12,7 @@ const minInterval = 3; // Minutes
|
||||
var captureProjectID = -1;
|
||||
var captureInterval = 0; // Minutes
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /procedure/start/:
|
||||
* post:
|
||||
* summary: Start the capture procedure
|
||||
* description: Starts the capture procedure with the given project ID and interval.
|
||||
* requestBody:
|
||||
* required: true
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
* type: object
|
||||
* properties:
|
||||
* projectId:
|
||||
* type: integer
|
||||
* description: The ID of the project to start capturing.
|
||||
* interval:
|
||||
* type: integer
|
||||
* description: The interval in minutes for the capture.
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Capture procedure started successfully.
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
* type: object
|
||||
* properties:
|
||||
* message:
|
||||
* type: string
|
||||
* example: "Procédure de capture démarrée avec succès, projet ID: 1, interval: 10 minutes."
|
||||
* 500:
|
||||
* description: Internal server error.
|
||||
*/
|
||||
|
||||
router.post('/procedure/start/', async (req, res) => {
|
||||
const { projectId, interval } = req.body;
|
||||
try {
|
||||
@@ -115,26 +83,7 @@ function stopProcedure() {
|
||||
return { message: 'Procédure de capture arrêtée avec succès, projet ID: ' + oldProjectID + ', interval: ' + oldInterval + ' minutes.' };
|
||||
}
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /procedure/stop/:
|
||||
* post:
|
||||
* summary: Stop the capture procedure
|
||||
* description: Stops the capture procedure.
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Capture procedure stopped successfully.
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
* type: object
|
||||
* properties:
|
||||
* message:
|
||||
* type: string
|
||||
* example: "Procédure de capture arrêtée avec succès."
|
||||
* 500:
|
||||
* description: Internal server error.
|
||||
*/
|
||||
|
||||
router.post('/procedure/stop/', async (req, res) => {
|
||||
try {
|
||||
const result = stopProcedure();
|
||||
|
||||
Reference in New Issue
Block a user