Get /api/v1/tickets fails with - Call to a member function fails - Tickets.php
Description
Url :
It works completely fine on fetching the individual ticket.
Url :
How to reproduce
After installing the API bundle within the container
Any hints or suggestions will be greatly appreciated
@byrebg
You have to make the following changes in security.yaml file by navigating through config –>> packages –>> security.yaml.
Do the simple changes in the position of uvdesk_api, just place it after the back support in firewalls or before the customer function as shown below:
Once you check after that clear the cache of your project using this command:
php bin/console c:c
Kind Respects, Uvdesk Team
@Komal-sharma-2712 , Thanks for your response.
We had done the changes as mentioned in the tutorial - https://www.uvdesk.com/en/blog/api-resource/
Also attached is screen shot of the changes done
We have tested multiple api for tickets
- Get ticket by ID : Works
- Post of ticket : Works
- Delete of ticket : Works
Get All ticket is failing. So Is there soemthing else missed ?
Any hints will be helpful. Also from exception on cross checking the code https://github.com/uvdesk/api-bundle/blob/6ef4f4cbe69e1cb72454d2c2fec70970cfeeecca/API/Tickets.php#L76
Working fine.