Open byrebg opened 1 year ago
@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 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
Description
Url :/api/v1/tickets
On invoking the get all tickets fails with error " Call to a member function getId() on null"
It works completely fine on fetching the individual ticket. Url :/api/v1/ticket/1
How to reproduce
After installing the API bundle within the container
Any hints or suggestions will be greatly appreciated