If you want to confirm 'T&A key' by using BioStar 2 API, it's possible to check the value through BioStar 2 New Local API.
* Please note that you CANNOT confirm 'T&A key' in BioStar 2 Local API Server.
If you retrieve event logs by using /api/event/search, you can see “tna_key” in the response result.
* Note:
You CANNOT set 'tna_key' as a filter of the condition when retrieving the event log.
eg,)
To confirm the “tna_key” values’ meaning, please check your T&A setting through connecting “https:[your BioStar 2 Server IP]:3002/tna/setting”.
key_index | type_code | tna_key |
0 | PUNCH_TYPE_CHECK_IN | 1 |
1 | PUNCH_TYPE_CHECK_OUT | 2 |
2 | PUNCH_TYPE_BREAK_START | 3 |
3 | PUNCH_TYPE_BREAK_END | 4 |
4 | PUNCH_TYPE_MEAL_START | 5 |
5 | PUNCH_TYPE_MEAL_END | 6 |
eg,)
> BioStar 2 TA Setting
> Confirmed "tna_key" via connecting address (eg, https://192.168.8.35:3002/tna/setting )
- Relevant article: [BioStar 2 API] How To Retrieve Events Logs