![]() |
Urlaubsplan
|


Öffentliche Attribute | |
| path | : "/api/urlaub/{year}/{month}" |
| HTTP-spezifischer Kontext. | |
| path | tags: ["Urlaub"] |
| path | summary: "Retrieve holiday and leave data for a specific month and year" |
| path | parameters: [ new OA\Parameter( name: "year" |
| path | in: "path" |
| path | required: true |
| path | description: "Year of the query" |
| path | schema: new OA\Schema(type: "integer" |
| path | example: 2024) ) |
| path new OA Parameter(name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] | responses: [ new OA\Response( response: 200 |
| path new OA Parameter(name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] | description: "Holiday and leave data retrieved successfully" |
| path new OA Parameter(name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] | content: new OA\JsonContent( properties: [ new OA\Property(property: "users" |
| path new OA Parameter(name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] | type: "array" |
| path new OA Parameter(name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] | items: new OA\Items( properties: [ new OA\Property(property: "first_name" |
| path new OA Parameter(name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] | example: "John") |
| path new OA Parameter(name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] new OA Property(property:"last_name", type:"string", example:"Doe") new OA Property(property:"events", type:"array", items:new OA\Items(properties:[new OA\Property(property:"start_date", type:"string", example:"2024-05-01"), new OA\Property(property:"end_date", type:"string", example:"2024-05-03"), new OA\Property(property:"type", type:"string", example:"vacation"), new OA\Property(property:"status", type:"string", example:"approved")]))])) new OA Property(property:"holidays", type:"array", items:new OA\Items(properties:[new OA\Property(property:"date", type:"string", example:"2024-05-01"), new OA\Property(property:"name", type:"string", example:"Labor Day")]))])) new OA Response(response:404, description:"No data found for the given month and year", content:new OA\JsonContent(properties:[new OA\Property(property:"status", type:"string", example:"error"), new OA\Property(property:"message", type:"string", example:"Keine Daten gefunden.")]))])] public function index($year | $month |
| $userModel = new User() | |
| $holidayModel = new HolidayModel() | |
| $events = $urlaubModel->getUrlaubByMonth($year, $month) | |
| $users = $userModel->findAll() | |
| $holidays = $holidayModel->getHolidays() | |
Controller zur Verwaltung von Urlaubs- und Feiertagsinformationen für Mitarbeiter.
| App::Controllers::Api::UrlaubController::$events = $urlaubModel->getUrlaubByMonth($year, $month) |
| App::Controllers::Api::UrlaubController::$holidayModel = new HolidayModel() |
| App::Controllers::Api::UrlaubController::$holidays = $holidayModel->getHolidays() |
| path new OA Parameter(name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] new OA Property(property:"last_name", type:"string", example:"Doe") new OA Property(property:"events", type:"array", items:new OA\Items(properties:[new OA\Property(property:"start_date", type:"string", example:"2024-05-01"), new OA\Property(property:"end_date", type:"string", example:"2024-05-03"), new OA\Property(property:"type", type:"string", example:"vacation"), new OA\Property(property:"status", type:"string", example:"approved")]))])) new OA Property(property:"holidays", type:"array", items:new OA\Items(properties:[new OA\Property(property:"date", type:"string", example:"2024-05-01"), new OA\Property(property:"name", type:"string", example:"Labor Day")]))])) new OA Response (response:404, description:"No data found for the given month and year", content:new OA\JsonContent( properties:[ new OA\Property(property:"status", type:"string", example:"error"), new OA\Property(property:"message", type:"string", example:"Keine Daten gefunden.")]))])] public function index( $year App::Controllers::Api::UrlaubController::$month |
| App::Controllers::Api::UrlaubController::$userModel = new User() |
| App::Controllers::Api::UrlaubController::$users = $userModel->findAll() |
| path App::Controllers::Api::UrlaubController::__pad0__ |
HTTP-spezifischer Kontext.
Gibt Urlaubs- und Feiertagsinformationen für einen bestimmten Monat und ein Jahr zurück.
| int | $year | Das Jahr der Abfrage |
| int | $month | Der Monat der Abfrage |
API-Endpunkt {get} /api/urlaub/:year/:month Urlaubs- und Feiertagsdaten abrufen
| path new OA Parameter (name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] App::Controllers::Api::UrlaubController::content |
| path App::Controllers::Api::UrlaubController::description |
| path new OA Parameter (name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] App::Controllers::Api::UrlaubController::description |
| path App::Controllers::Api::UrlaubController::example |
| path new OA Parameter (name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] App::Controllers::Api::UrlaubController::example |
| path App::Controllers::Api::UrlaubController::in |
| path new OA Parameter (name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] App::Controllers::Api::UrlaubController::items |
| path App::Controllers::Api::UrlaubController::parameters |
| path App::Controllers::Api::UrlaubController::required |
| path new OA Parameter (name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] App::Controllers::Api::UrlaubController::responses |
| path App::Controllers::Api::UrlaubController::schema |
| path App::Controllers::Api::UrlaubController::summary |
| path App::Controllers::Api::UrlaubController::tags |
| path new OA Parameter (name:"month", in:"path", required:true, description:"Month of the query", schema:new OA\Schema(type:"integer", example:5))] App::Controllers::Api::UrlaubController::type |