-
Notifications
You must be signed in to change notification settings - Fork 3
PicsureRS
Picsure endpoints take in a QueryRequest
object, which contains a resourceCredentials
map.
The resourceCredentials
is simply a map of strings to strings. Requests made to resources through Picsure must be accompanied by a token for that resource. ResourceRSs will define the key they expect to find in the resourceCredentials
map. This should be identified in the description of the Resource to assist the user.
The QueryRequest
object, in addition to a credentials map, also contains a query
object and a resourceUUID
. The resourceUUID
identifies which resource to send the request to. The query
is a generic Java object and can take whatever form is required for the specific request and resource. The resourceRS should know what type of object to expect and how to deal with it.