Layer7 API Management

Expand all | Collapse all

API documentation in CA Layer7

Jump to Best Answer
  • 1.  API documentation in CA Layer7

    Posted 07-31-2017 05:39 AM

    Hi,

     

    We would like to know the possibility for generating documentations from API gateway vs Portal like WSDL, Swagger or RAMLs. Could you please share how to import documentation for APIs from Layer7 gateway if it is possible.

     

    Regards,

    Rathnakar



  • 2.  Re: API documentation in CA Layer7
    Best Answer

    Posted 07-31-2017 07:35 PM

    Hello rathnakarreddykasireddy ,

    I guess you're trying to publish the document of API on gateway. If yes, you can publish a new service with file name.

    for example, you have an API "/test"  on gateway, you want to publish its swagger document "/test.json", you may just "Publish Web API" on the gateway with resolution path set as, /test.json

    In the policy, you only need to add "Return template response to requestor", the context-type set as "text/json; charset=UTF-8", and in the response body, you input the complete swagger document of the API "test"

     

    Regards,

    Mark