![]() |
Urlaubsplan
|
Öffentliche Methoden | |
| __construct () | |
Öffentliche Attribute | |
| path | : "/api/holidays/{userID}" |
| HTTP-spezifischer Kontext. | |
| path | tags: ["Holidays"] |
| path | summary: "Retrieve all holidays for a user" |
| path | parameters: [ new OA\Parameter( name: "userID" |
| path | in: "path" |
| path | required: true |
| path | description: "User ID" |
| path | schema: new OA\Schema(type: "integer" |
| path | example: 1) ) ] |
| path | responses: [ new OA\Response( response: 200 |
| path | content: new OA\JsonContent( properties: [ new OA\Property(property: "user" |
| path | type: "object" |
| path | : "/api/holidays" |
| HTTP-spezifischer Kontext. | |
| path | requestBody: new OA\RequestBody( required: true |
| path new OA Property(property:"start_date", type:"string", example:"2024-01-01") new OA Property(property:"end_date", type:"string", example:"2024-01-10") new OA Property(property:"type", type:"string", example:"annual") new OA Property(property:"status", type:"string", example:"pending")])) | responses: [ new OA\Response( response: 201 |
| path new OA Property(property:"start_date", type:"string", example:"2024-01-01") new OA Property(property:"end_date", type:"string", example:"2024-01-10") new OA Property(property:"type", type:"string", example:"annual") new OA Property(property:"status", type:"string", example:"pending")]) | description: "Holiday added successfully" |
| path new OA Property(property:"start_date", type:"string", example:"2024-01-01") new OA Property(property:"end_date", type:"string", example:"2024-01-10") new OA Property(property:"type", type:"string", example:"annual") new OA Property(property:"status", type:"string", example:"pending")] | content: new OA\JsonContent( properties: [ new OA\Property(property: "status" |
| path new OA Property(property:"start_date", type:"string", example:"2024-01-01") new OA Property(property:"end_date", type:"string", example:"2024-01-10") new OA Property(property:"type", type:"string", example:"annual") new OA Property(property:"status", type:"string", example:"pending")] | type: "string" |
| path new OA Property(property:"start_date", type:"string", example:"2024-01-01") new OA Property(property:"end_date", type:"string", example:"2024-01-10") new OA Property(property:"type", type:"string", example:"annual") new OA Property(property:"status", type:"string", example:"pending")] | example: "success") |
Geschützte Attribute | |
| $modelName = 'App\Models\HolidayModel' | |
| $format = 'json' | |
Propertys | |
| UrlaubModel | Response [get, set] |
| $events = $urlaubModel->getAllUrlaub($userID) | |
Controller zur Verwaltung von Urlaubsanträgen und -informationen.
| App::Controllers::Api::HolidayApiController::__construct | ( | ) |
Konstruktor zur globalen Rollenprüfung
|
protected |
|
protected |
| path App::Controllers::Api::HolidayApiController::__pad0__ |
HTTP-spezifischer Kontext.
Liste aller Urlaube eines Benutzers abrufen.
| int | null | $userID | ID des Benutzers |
API-Endpunkt {get} /api/holidays/:userID Urlaubsübersicht abrufen
| path App::Controllers::Api::HolidayApiController::__pad1__ |
HTTP-spezifischer Kontext.
Fügt einen neuen Urlaubseintrag hinzu.
API-Endpunkt {post} /api/holidays Urlaub hinzufügen
| path App::Controllers::Api::HolidayApiController::content |
| path new OA Property(property:"start_date", type:"string", example:"2024-01-01") new OA Property(property:"end_date", type:"string", example:"2024-01-10") new OA Property(property:"type", type:"string", example:"annual") new OA Property (property:"status", type:"string", example:"pending")] App::Controllers::Api::HolidayApiController::content |
| path App::Controllers::Api::HolidayApiController::description |
| path new OA Property(property:"start_date", type:"string", example:"2024-01-01") new OA Property(property:"end_date", type:"string", example:"2024-01-10") new OA Property(property:"type", type:"string", example:"annual") new OA Property (property:"status", type:"string", example:"pending")]) App::Controllers::Api::HolidayApiController::description |
| path App::Controllers::Api::HolidayApiController::example |
| path new OA Property(property:"start_date", type:"string", example:"2024-01-01") new OA Property(property:"end_date", type:"string", example:"2024-01-10") new OA Property(property:"type", type:"string", example:"annual") new OA Property (property:"status", type:"string", example:"pending")] App::Controllers::Api::HolidayApiController::example |
| path App::Controllers::Api::HolidayApiController::in |
| path App::Controllers::Api::HolidayApiController::parameters |
| path App::Controllers::Api::HolidayApiController::requestBody |
| path App::Controllers::Api::HolidayApiController::required |
| path App::Controllers::Api::HolidayApiController::responses |
| path new OA Property(property:"start_date", type:"string", example:"2024-01-01") new OA Property(property:"end_date", type:"string", example:"2024-01-10") new OA Property(property:"type", type:"string", example:"annual") new OA Property (property:"status", type:"string", example:"pending")])) App::Controllers::Api::HolidayApiController::responses |
| path App::Controllers::Api::HolidayApiController::schema |
| path App::Controllers::Api::HolidayApiController::summary |
| path App::Controllers::Api::HolidayApiController::tags |
| path App::Controllers::Api::HolidayApiController::type |
| path new OA Property(property:"start_date", type:"string", example:"2024-01-01") new OA Property(property:"end_date", type:"string", example:"2024-01-10") new OA Property(property:"type", type:"string", example:"annual") new OA Property (property:"status", type:"string", example:"pending")] App::Controllers::Api::HolidayApiController::type |
| App::Controllers::Api::HolidayApiController::$events = $urlaubModel->getAllUrlaub($userID) |
|
getsetproperty |