IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  rest v2

    Posted Fri November 09, 2018 12:17 PM

    Hello Experts,

    For 10.2 version, when I am using rest v2(recommended) to create a rest service, I am unable to invoke the service with the URL

    http://host:port/restv2/urldefined

    Could you please guide if i am missing something obvious? I am getting 404 so the URL i am trying is wrong.

    Please help.

    Regards
    Sasa


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: rest v2

    Posted Sun November 11, 2018 06:57 PM

    Refer “Configuring a REST V2 Resource” from 10-3_Service_Development_Help.pdf

    Find attached package (basic demo for Rest V2).

    URL: http://localhost:5555/restv2/RestV2Svc

    Method: POST

    Data:

    {
    “num1”: “1”,
    “num2”: “1”
    }
    RestV2Demo.zip (17.1 KB)


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: rest v2

    Posted Wed November 21, 2018 05:14 AM

    Thank you Mahesh for sharing the information. :). Sorry for my slow response.
    I have couple of questions for this:-

    is the rest resource name and URL template names should be same. I mean if i have the rest resource say customers, I have use the URL pattern like /customers or /customers/{custID}. And the URL pattern like this /goldCustomers is invalid.

    Also, guide me how to form the swagger document link to be shared with the source application?

    Regards
    Sasa


    #webMethods
    #Integration-Server-and-ESB