Open APIs

 View Only
  • 1.  JSON PATCH as per RFC6902 and application/json-patch+json

    Posted Jul 06, 2022 18:42
    According to the TM Forum Specification of REST API Design Guidelines Part 1 in Chapter 5. Modify resources patterns it is mentioned that the modification of list based attributes can be performed using JSON PATCH as per RFC6902 and application/json-patch+json. When JSON PATCH is used the Content-Type MUST be set to Content-Type: application/json-patch+json and the directives for changing, adding and removing array elements follow the directives stated in the JSON PATCH specification. The structure of this type of JSON document includes the field "op" that is the action to take. The following operations are supported: Add, Remove, Replace, Copy, Move and Test. Is there an Open API that considers in its specification the scenario of using JSON PATCH as per RFC6902 and application/json-patch+json?

    ------------------------------
    Marisol Claudia Nuñez Wagner
    TELEFONICA
    ------------------------------


  • 2.  RE: JSON PATCH as per RFC6902 and application/json-patch+json

    Posted Jul 07, 2022 09:03
    Hello,
    I am not sure I fully understand the question. But if you are asking whether any of the Open API specifications state that PATCH and JSON PATCH can be used to modify a resource than TMF 622 Product Ordering Management specifies this as a way of amending a product order resource.

    ------------------------------
    Derrick Evans
    ------------------------------



  • 3.  RE: JSON PATCH as per RFC6902 and application/json-patch+json

    Posted Jul 07, 2022 11:49
    Edited by Marisol Claudia Nuñez Wagner Jul 07, 2022 11:49
    Hi Derrick,

    It was indeed what I was looking for, in the aforementioned Open API specification there is an example of how to use the Content-Type: application/json-patch+json and there is even another example of how to use the Content-Type: application/merge- patch+json. Thanks for the reply.

    ------------------------------
    Marisol Claudia Nuñez Wagner
    TELEFONICA
    ------------------------------