Hello Vishal
In fact...both UC can be managed. See examples based on Trouble Ticket but logic is the same.
If you POST a Hub with following:
POST {api_url}/HUB
Accept: application/json
{"callback": http://in.listener.com,
"query":"eventType = TicketStateChangeNotification"
}
You'll received notification for
all trouble ticket when TT state change.
If you do:
Accept: application/json
{"callback": http://in.listener.com,
"query":"eventType = TroubleTicketStateChangeNotification"&troubleTicket.id=452-45k
}
You're subscribing only to TT state change for TT #452-45k.
In my experience the first case is more often use... subscribing for one instance is for very specific UC (never saw implemented on my experience).
But restricting the query is nevertheless vey useful:
Accept: application/json
{"callback": http://in.listener.com,
"query":"eventType = TroubleTicketStateChangeNotification"&troubleTicket.Status=COMPLETED
}
Here I just want to receive notification when TT are completed.
hope it helps,
Ludovic
------------------------------
Ludovic Robert
Orange
My answer are my own & don't represent necessarily my company or the TMF
------------------------------