A new API for Time Attendance has been added with BioStar 2.8.13.
For ‘How to use TA API swagger’, please refer to the link below:
[BioStar 2 TA API] How to use and start BioStar 2 TA API
How to Search for Rules
BioStar 2 TA Rules can be searched by using TA API.
You can find the /tna/Rule API in your TA Swagger.
Part 1. Search for the Rules
[GET]: /tna/rules
[Headers]
*offset & limit headers are required.
[Parameters]
Name | Type | *M/O | Explanation | Value |
|
|
|
|
|
* M – Mandatory, O – Optional
[Example Value/Parameters Model]
|
[Response: successful]
{ "message": "Processed Successfully", "message_key": "SUCCESSFUL", "language": "en", "status_code": "SUCCESSFUL", "total": 3, "records": [ { "id": 1, "name": "Rule 1", "description": "Rule 1", "created_perm_id": 1 }, { "id": 2, "name": "Rule 2", "description": "Rule 2", "created_perm_id": 1 }, { "id": 3, "name": "Rule 3", "description": "Rule 3", "created_perm_id": 1 } ] } |
Above response represents the results same as the screenshot below.
Part 2. Search for Rules via POSTMAN