How to use container in Resource class

i want to know how i can call the container correctly and use to get adapter created by apgility

please read documentation on creating resource class https://api-tools.getlaminas.org/documentation/intro/first-rest-service#defining-the-resource . It uses factory to create a resource instance with inject the appropriate service in constructor.