KatjaGlassConsulting / ApprovalBundle

A Kimai Plugin to manage weekly approval workflow
MIT License
11 stars 14 forks source link

500 error at endponint /api/next-week #21

Closed vitormattos closed 7 months ago

vitormattos commented 7 months ago

I am getting 500 errors ... I am checking with the API component from the demo bundle ... that is working, but not the APIs from the approval bundle.

image

Originally posted by @KatjaGlassConsulting in https://github.com/KatjaGlassConsulting/ApprovalBundle/issues/20#issuecomment-1838806418

vitormattos commented 7 months ago

Maybe related with:

This has to do with the parameter - looking into ApprovalNextWeekApiController.php:

When I remove the parameter definition it's working: #[OA\Parameter( name: 'user', in: 'query', type: 'integer', description: 'User ID to get information for', required: false, )]

public function nextWeekAction(Request $request): Response

So I guess it must be defined differently.

Originally posted by @KatjaGlassConsulting in https://github.com/KatjaGlassConsulting/ApprovalBundle/pull/20#issuecomment-1838823070

KatjaGlassConsulting commented 7 months ago

API is now working - need to perform final tests tomorrow