-
Notifications
You must be signed in to change notification settings - Fork 0
Resource Query
This section will demonstrate how to query resources on the bus.
Through the methods described in this topic, it will be possible to make requests to microservices that provide queries to some resources under your responsibility. The requests made will wait for a response from a provider during the number of milliseconds previously defined in connection options.
Currently, query methods are defined for some resources of Account, IoT Tracking, Food and Data Processing microservices.
In addition to these methods, a general method that has the signature getResource(name: string, params: any[], callback?: (err, result) => any): void | Promise<any> was created, making it possible to make requests for resources that are not pre-defined in the library.
Below are links to pages that describe the get events already defined by the library, separated by microservice:
OCARIoT RabbitMQ Client Library (Full documentation)