Include Working Status in Frontend Dashboard
All checks were successful
Java CI with Maven / build (push) Successful in 48s
All checks were successful
Java CI with Maven / build (push) Successful in 48s
This commit is contained in:
parent
d7850a9aa7
commit
13a876c893
@ -24,8 +24,8 @@ public class StatisticController {
|
||||
|
||||
@Autowired private TaskScheduleService taskScheduleService;
|
||||
|
||||
@GetMapping("/history/todayStatus")
|
||||
public ResponseEntity<?> loadStatusOfToday() {
|
||||
@GetMapping("/history/workingStatus")
|
||||
public ResponseEntity<?> getWorkingStatus() {
|
||||
boolean missedSchedules = !taskScheduleService.getAllMissedSchedulesOfUser(SecurityContextHolder.getContext().getAuthentication().getName()).isEmpty();
|
||||
List<AbstractSchedule> executedSchedules = taskScheduleService.getActiveSchedulesOfToday(SecurityContextHolder.getContext().getAuthentication().getName());
|
||||
int activeTime = 0;
|
||||
|
46
openapi.yaml
46
openapi.yaml
@ -1626,28 +1626,7 @@ paths:
|
||||
schema:
|
||||
type: object
|
||||
$ref: "#/components/schemas/SimpleStatusResponse"
|
||||
/schedules/status/today:
|
||||
get:
|
||||
security:
|
||||
- API_TOKEN: []
|
||||
tags:
|
||||
- schedule
|
||||
description: get number of worked minutes today
|
||||
summary: get number of active minutes
|
||||
responses:
|
||||
200:
|
||||
description: operation successfull
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ScheduleStatus'
|
||||
404:
|
||||
description: User not found
|
||||
content:
|
||||
'application/json':
|
||||
schema:
|
||||
type: object
|
||||
$ref: "#/components/schemas/SimpleStatusResponse"
|
||||
|
||||
/schedules/{taskID}/forgotten:
|
||||
post:
|
||||
security:
|
||||
@ -1758,6 +1737,29 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/SimpleStatusResponse'
|
||||
/history/workingStatus:
|
||||
get:
|
||||
security:
|
||||
- API_TOKEN: []
|
||||
tags:
|
||||
- history
|
||||
description: get number of worked minutes today
|
||||
summary: get number of active minutes
|
||||
responses:
|
||||
200:
|
||||
description: operation successfull
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ScheduleStatus'
|
||||
404:
|
||||
description: User not found
|
||||
content:
|
||||
'application/json':
|
||||
schema:
|
||||
type: object
|
||||
$ref: "#/components/schemas/SimpleStatusResponse"
|
||||
|
||||
components:
|
||||
securitySchemes:
|
||||
API_TOKEN:
|
||||
|
Loading…
Reference in New Issue
Block a user