Open APIs

 View Only
  • 1.  Headers for DELETE method

    Posted Jul 09, 2020 15:21
    Hi,
    I have a question about necessity of any headers using DELETE method.
    According to TMF 630 part 1 
    - The client MAY include ANY HTTP Header as specified in [RFC2730], [RFC2731], [RFC2732],[RFC2734],[RFC2735].
    - The server MUST expect any HTTP header as specified in in [RFC2730], [RFC2731], [RFC2732],[RFC2734],[RFC2735].
    But this is general information and I haven't found direct mentioning of DELETE method in this case.
    Could you please clarify if any headers should be used with DELETE method?


    ------------------------------
    Ekaterina Afanaseva
    T-Systems International Services GmbH
    ------------------------------


  • 2.  RE: Headers for DELETE method

    TM Forum Member
    Posted Jul 12, 2020 03:28
    Hi Ekaterina
    Not sure why the headers should be different for DELETE method as against any other of the Open API methods (GET, POST, PUT). Perhaps you could clarify your query with a specific example?

    ------------------------------
    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: Headers for DELETE method

    Posted Jul 13, 2020 07:22
    Hi Jonathan,
    According to TMF 641 we are implementing delete Service Order. There is no body payload in the query, only url with id of the order. 
    After successful deletion of the Service Order server should not send something in the body, just return 204 no Content.
    In these two cases it seems that such headers like Content-Type and Accept  are not necessary because we don't have body at all. 
    All other mentioned methods have request or/and response bodies.
    Only in case of unsuccessful deletion (some error cases) the server returns 4xx error code and response body according to tmf 630 part 1. 
    And in this case I suppose headers should be present.
    That's why I asked about using headers in DELETE method.

    ------------------------------
    Ekaterina Afanaseva
    T-Systems International Services GmbH
    ------------------------------



  • 4.  RE: Headers for DELETE method

    TM Forum Member
    Posted Jul 13, 2020 07:41
    Thanks, I see what you mean. Perhaps the guidelines need to be adjusted. Could be that it is enough to add something like:
    The client may include ANY relevant HTTP header ...
    Example of relevance - if no body is sent in the request (e.g. DELETE) then headers such as Content-Type and Accept will not be relevant.

    Copying @Alexis De Peufeilhoux, who currently manages the guidelines content.​

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