Open APIs

  • 1.  TMF630 GET with url encoded values

    Posted 16 days ago
    According to TMF630 REST API Design Guidelines 4.2.0 - TM Forum part1 page 31 it should be this way :

    GET /api/troubleTicket?dateTime%3E2013-04-20&dateTime%3C2017-04-20

    unfortunately I have tried to create that in Postman and SoapUI and without success:
    Both of them create that with sign "="

    GET /api/troubleTicket?dateTime=%3E2013-04-20&dateTime=%3C2017-04-20

    Otherwise it does not work
    another option to add Header Content-Type= application/x-www-form-urlencoded and fill with non-encoded values ,but still in the receiving side it coming as:
    GET /api/troubleTicket?dateTime=%3E2013-04-20&dateTime=%3C2017-04-20.

    Can you tell me what I am doing wrong or that is the error in the document?

    ------------------------------
    Alexander Etin
    TO BE VERIFIED
    ------------------------------


  • 2.  RE: TMF630 GET with url encoded values

    Posted 14 days ago
    Hi,

    First thing, this is not specific to TMF api. It is a general technique used over internet.
    Does not look like an issue to me. Do you have any errors to share ?

    Thanks,
    Hanumantha.

    ------------------------------
    Hanumantha Marikanti
    Saralam Technologies
    ------------------------------



  • 3.  RE: TMF630 GET with url encoded values

    Posted 13 days ago
    Edited by Alexander Etin 13 days ago
    Thank you for your response.
    So then I send :
    curl http://localhost:8090/testQuery?externalId%3D123&date%3E2013-04-20&date%3C2017-04-20
    to my code I am getting nulls :

    Also then I try to use postman or soapUI the tools themselves are automatically  adding "=" in request and it works then fine in my code :

    And SoapUI doing that as well:

    What should I change in my code do you think?
    My client defined the interface according to your document without the signs "=" and does not agree to change that .
    Thank you,
    Alex Etin
    ------------------------------
    Alexander Etin
    TO BE VERIFIED
    ------------------------------



  • 4.  RE: TMF630 GET with url encoded values

    Posted 13 days ago
    Although this is not only way to form the urls. You may want try with -L option

    curl -L http://localhost:8090/testQuery?externalId%3D123&date%3E2013-04-20&date%3C2017-04-20

    Thanks.

    ------------------------------
    Hanumantha Marikanti
    Saralam Technologies
    ------------------------------



  • 5.  RE: TMF630 GET with url encoded values

    Posted 13 days ago
    Edited by Alexander Etin 13 days ago
    No I tried it, it does not help .
    -L option is If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place. I don't get how it was supposed to help even. The problem here, that without "=" it could not parse the url at all and in the Java code it received as not initialized null. The response I am getting as a result :

    it works though then I add "="' between the name and value:

    ------------------------------
    Alexander Etin
    TO BE VERIFIED
    ------------------------------