Open APIs

 View Only
  • 1.  Delete Resource Pattern

    TM Forum Member
    Posted Oct 01, 2021 09:37
      |   view attached

    Attached document `TMF630_REST_API_Design_Guidelines_3.0_Part_1 _R17.5.1.pdf` in page number 67

    Section - 7. Delete Resource Pattern

    A Delete operation MUST return exactly one resource.

    Does it mean that we should always return the deleted resource in the response body?



    ------------------------------
    Pradeep Reddy Dodla
    Oracle Corporation
    ------------------------------


  • 2.  RE: Delete Resource Pattern

    TM Forum Member
    Posted Oct 03, 2021 03:50
    Hi Pradeep
    Thanks for the catch. I think that this is a mistake and we need to fix it. I'll open a JIRA issue.
    The DELETE operation is supposed to return 204 (successful delete, no content), and indeed in API generated swaggers this is the only supported response.

    ------------------------------
    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.
    ------------------------------



  • 3.  RE: Delete Resource Pattern

    TM Forum Member
    Posted Oct 04, 2021 01:18

    Hi Jonathan,

    Thanks for the response.

    Please let me know if you have already raised a JIRA issue. If yes, can you please share the link? 



    ------------------------------
    Pradeep Reddy Dodla
    Oracle Corporation
    ------------------------------



  • 4.  RE: Delete Resource Pattern

    TM Forum Member
    Posted Oct 04, 2021 02:33
    Your wish is my command - you'll need to be a member of the Open API collaborative project to access this link.
    https://projects.tmforum.org/jira/browse/AP-2980

    ------------------------------
    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.
    ------------------------------



  • 5.  RE: Delete Resource Pattern

    TM Forum Member
    Posted Oct 05, 2021 01:48

    Thanks Jonathan.



    ------------------------------
    Pradeep Reddy Dodla
    Oracle Corporation
    ------------------------------