@@ -49,23 +49,6 @@ app.use('/api', swaggerUi.serve, swaggerUi.setup(specs));
* type: number
* advertisingCosts:
- * responses:
- * 200:
- * description: Success
- * content:
- * application/json:
- * schema:
- * type: object
- * properties:
- * wbsGranted:
- * type: boolean
- * requestBody:
- * description: Example request body
- * required: true
* example:
* persons:
* - incomes:
@@ -82,6 +65,16 @@ app.use('/api', swaggerUi.serve, swaggerUi.setup(specs));
* - amount: 2000
* frequency: 1
* advertisingCosts: 0
+ * responses:
+ * 200:
+ * description: Success
+ * content:
+ * application/json:
+ * schema:
+ * type: object
+ * properties:
+ * wbsGranted:
+ * type: boolean
*/
app.post('/calculate', (req, res) => {
let totalIncome = 0;