Hi Jeevan,
If you query sourceHref, you could only find out if the operation is completed or not.
For example, for a GET /sourceHref following a POST (create single resource), I would expect the server to return either 404 (if creation is still in progress) or 200 (if creation has been completed).
The monitor can provide much more detailed status (such as queued, validated, approved, %X completed, etc.), depending on the implementation.
You may also check out the "Notification Patterns" section of the design guidelines, if you haven't yet.
P.S. There is a newer version (4.0.0) of design guidelines.
Regards,
------------------------------
Şanver Narin
PiA-TEAM INC.
------------------------------
Original Message:
Sent: Nov 30, 2020 00:43
From: Jeevan Mohite
Subject: Query regarding creating resource asynchronously
Hi,
As per the Create Resource Patterns in TMF630_REST_API_Design_Guidelines_3.0_Part_1 _R17.5.1 - "If operation is async, a Monitor resources MUST be returned."
And the monitor resource attributes contain "href - The reference to this monitor" and "sourceHref - The monitored resource href"
Question - Can the monitored resource (i.e. sourceHref) itself be queried back to track the progress of the operation i.e. without creating an explicit monitor resource ?
I am trying to understand the need for an explicit monitor resource. Can you please clarify ?
Thanks,
Jeevan Mohite
------------------------------
Jeevan Mohite
BT Group plc
------------------------------