HTTP API usage reference: timebank-web/src/api
Check server status.
Get a list of all records.
Search record.
Request JSON body:
{
"dateBegin": "yyyy-mm-dd",
"dateEnd": "yyyy-mm-dd"
}Create record.
You need to add admin_token to http header.
admin_token can be customized in environment variables(ADMIN_TOKEN), example: restart.sh
Request JSON body:
{
"date": "yyyy-mm-dd",
"timeIndexBegin": 1,
"timeIndexEnd": 12,
"type": "string",
"remark": "string"
}