Skip to content

Commit

Permalink
Fix apidoc definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Apr 3, 2024
1 parent 5804993 commit cc9849b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Http/Controllers/Api/RequestController.php
Expand Up @@ -8,14 +8,16 @@

class RequestController extends Controller
{
/**
* @apiDefine kpiToken KPI Token
* The request must provide the token configured in the KPI module.
*/

/**
* Saves action/visit count from cron job
*
* @apiDefine kpi-tpken KPI Token
* The request must provide the token configured in the KPI module.
*
* @api {post} /kpis Save actions/visits KPIs
* @apiPermission kpi-token
* @apiPermission kpiToken
* @apiDescription The submitted values are stored for the previous day.
* @apiParam {Number} visits The number of GET requests to `/` (without bots).
* @apiParam {Number} actions The number of PUT/POST/DELETE requests (without bots and heartbeat).
Expand Down

0 comments on commit cc9849b

Please sign in to comment.