Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Integrating swagger with Http Endpoints #134

Open
ashwintandel opened this issue May 23, 2018 · 0 comments
Open

Integrating swagger with Http Endpoints #134

ashwintandel opened this issue May 23, 2018 · 0 comments

Comments

@ashwintandel
Copy link

As per this example, we need to have Java Bean that uses JAX RS annotation to expose the service.
We have used HTTP Endpoints to expose services. Below is the sample flow. Please let me know how to integration swagger with it.



<http:request-config name="HTTP_Request_Configuration" host="" port="80" doc:name="HTTP Request Configuration">
<http:basic-authentication username="username" password="testpassword!"/>
</http:request-config>

    <http:listener config-ref="HTTP_Listener_Configuration" path="/getStudentInfo" allowedMethods="GET" doc:name="HTTP">
        <http:response-builder>
            <http:header headerName="Content-Type" value="application/json"/>
        </http:response-builder>
  </http:listener>
    <logger message="Path called is #[message.inboundProperties.'http.request.path']" level="INFO" doc:name="Logger"/>
    
        <http:request config-ref="HTTP_Request_Configuration" path="/studentId" method="GET" doc:name="HTTP"/>
   
        <logger level="INFO" doc:name="Logger" message="Response is #[message.payloadAs(java.lang.String)]"/>
    
</flow>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant