Layer7 API Management

 View Only
  • 1.  Update service with REST API

    Broadcom Employee
    Posted Mar 06, 2017 06:21 AM

    Hi,

    I need to update one existing service with REST API. I created one service whose version is "1" by default and I can update it successfully with REST API without setting service version in request at the first time. But I got "mismatch version" error when I tried to update the second time because the service version in Gateway is "2" but I didn't set version in the API request.

    Is there a way to call API to update service without setting version in request? In another word, I hope the Gateway can increase the version automatically when calling the API to update service.

     

    Thanks

    Yang 



  • 2.  Re: Update service with REST API

    Posted Mar 09, 2017 08:17 AM

    Hi YangChen,

     

    Put here the details of the POST performed.

     

    Thanks



  • 3.  Re: Update service with REST API
    Best Answer

    Broadcom Employee
    Posted Mar 21, 2017 10:53 PM

    Hi Matmoreno,

     

    I resolved by getting service version and updating it to the request xml.

     

    Thanks

    Yang