Hi Bhanu
The examples in user guide are ILLUSTRATIVE, not NORMATIVE. The swagger, as the technical definition of the API, is the correct source of truth.
In this specific example (POST service order), the user guide says:
- We use the 'fields' parameter to restrict the numbers of attributes returned in the response.
But this is actually problematic, since fields is a query parameter, relevant for GET and not POST.
I think we need to look at this again in the Open API team - since seemingly there is no need to return the full entity on POST or PATCH, only calculated fields (e.g. id, href, perhaps status, and others, depending on the specific resource).
Regarding GET, I don't see a problem. In the example for GET by ID, the fields parameter was not supplied so indeed the entire resource is returned, as expected.
Hope it helps
------------------------------
Jonathan Goldberg
Amdocs Management Limited
Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
------------------------------