@@ -48,6 +48,23 @@ class AttendanceConfigurationAPI extends Endpoint implements ResourceEndpoint
48
48
public const PARAMETER_CAN_SUPERVISOR_MODIFY_ATTENDANCE = 'canSupervisorModifyAttendance ' ;
49
49
50
50
/**
51
+ * @OA\Get(
52
+ * path="/api/v2/attendance/configs",
53
+ * tags={"Attendance/Configuration"},
54
+ * @OA\Response(
55
+ * response="200",
56
+ * description="Success",
57
+ * @OA\JsonContent(
58
+ * @OA\Property(
59
+ * property="data",
60
+ * type="object",
61
+ * ref="#/components/schemas/Attendance-AttendanceConfigurationModel"
62
+ * ),
63
+ * @OA\Property(property="meta", type="object")
64
+ * )
65
+ * )
66
+ * )
67
+ *
51
68
* @inheritDoc
52
69
*/
53
70
public function getOne (): EndpointResult
@@ -75,6 +92,31 @@ public function getValidationRuleForGetOne(): ParamRuleCollection
75
92
}
76
93
77
94
/**
95
+ * @OA\Put(
96
+ * path="/api/v2/attendance/configs",
97
+ * tags={"Attendance/Configuration"},
98
+ * @OA\RequestBody(
99
+ * @OA\JsonContent(
100
+ * type="object",
101
+ * @OA\Property(property="canUserChangeCurrentTime", type="boolean", example="true"),
102
+ * @OA\Property(property="canUserModifyAttendance", type="boolean", example="false"),
103
+ * @OA\Property(property="canSupervisorModifyAttendance", type="boolean", example="false"),
104
+ * )
105
+ * ),
106
+ * @OA\Response(
107
+ * response="200",
108
+ * description="Success",
109
+ * @OA\JsonContent(
110
+ * @OA\Property(
111
+ * property="data",
112
+ * type="object",
113
+ * ref="#/components/schemas/Attendance-AttendanceConfigurationModel"
114
+ * ),
115
+ * @OA\Property(property="meta", type="object")
116
+ * )
117
+ * )
118
+ * )
119
+ *
78
120
* @inheritDoc
79
121
*/
80
122
public function update (): EndpointResult
0 commit comments