7 Replies Latest reply on Feb 10, 2017 7:36 AM by Avadhut Lele

    How to access REST DSL Service from Fabric Gateway

    Madhu Chitti Newbie

      Hi

       

      I created REST DSL using restlet and deployed it to fabric container, I am able to consume the endpoint directly, but when I am trying to access the endpoint through fabric gateway it is not accessible.

       

      Working endpoint : http://localhost:8084/abc/def

       

      <restConfiguration bindingMode="json" component="restlet" port="8084"/>

       

           <rest path="/abc">

                  <get uri="/def">

                      <to uri="direct:status"/>

                  </get>

              </rest>

       

      Using Fabric Gateway without port in restConfiguration: http://localhost:9000/abc/def (NOT WORKING)

       

      <restConfiguration bindingMode="json" component="restlet" />

       

           <rest path="/abc">

                  <get uri="/def">

                      <to uri="direct:status"/>

                  </get>

              </rest>

       

      Am I missing something here? can some one please help me on this.

       

      Thanks,

      Madhu