websec-add-path-template-batch
Register the URL template in each input row.
Input fields: path_template (required), host, method, params, description. Omitted host or method means any. An existing template of the same host, method and path_template is updated. A row that fails validation is not saved and reports the reason in _error.
websec-add-path-template-batch
Output fields
| Field | Type | Name | Description |
|---|---|---|---|
| host | String | Host | Normalized host, * for any host, e.g. shop.example.com |
| method | String | Method | Normalized HTTP method, * for any method, e.g. GET |
| path_template | String | URL template | Normalized URL template, e.g. /api/users/:user_id/orders |
| guid | String | GUID | GUID of the stored template, e.g. 5b1c6e2a-8f4d-4e7b-9a31-0c2d7e9f1a44 |
| _action | String | Action | added or updated when saved, invalid on bad input, error on store failure |
| _error | String | Error | Reason of failure, e.g. invalid placeholder: :userId, use :name or :name.ext with [a-z0-9_] |