Open APIs

 View Only
  • 1.  Real sample request and response for TMF 664 PATCH operation

    TM Forum Member
    Posted Oct 19, 2020 09:30
    Could someone pls help me with the real sample of request of response of TMF 664 PATCH operation on Resource Function (VNF) please.

    Thanks in advance.

    ------------------------------
    Balasaheb Jadhav
    Tech Mahindra Limited
    ------------------------------


  • 2.  RE: Real sample request and response for TMF 664 PATCH operation

    TM Forum Member
    Posted Oct 19, 2020 21:46
    By way of explanation, our API User Guides are now generated by our own custom tooling from a set of templates.  When I created the current version of TMF664 I provided a sample JSON object for the ResourceFunction resource as well as samples for create request and response.  I did not provide a sample for a modify operation, so the tooling has created an example where just the "name" attribute of the sample resource is changed which is a template pattern it uses which is admittedly not a representative use case.  That said it is syntactically and semantically correct.

    For the use of PATCH see TMF630 REST API Design Guidelines section 5.3 Modify Attribute Subset of a Resource.  Note that the response may be either 200 or 202 for synchronous and asynchronous operations respectively.

    ------------------------------
    Vance Shipley
    SigScale
    ------------------------------