Re: Host UI components with go-swagger

2018-02-06 Thread Al Izi
> You can download Swagger UI code. That would be a huge overkill. All I need is a single endpoint in the existing swagger-go http server. On Monday, February 5, 2018 at 9:09:47 PM UTC-8, Ramya wrote: > > Hi Ali, > > You can download Swagger UI code. > Update the path of your yaml file in ind

Re: Host UI components with go-swagger

2018-02-05 Thread Ramya kadimetla
Hi Ali, You can download Swagger UI code. Update the path of your yaml file in index.html. Thanks & Regards, Ramya On Tue, Feb 6, 2018 at 4:56 AM, Al Izi wrote: > We've got some json REST API implemented with *go-swagger*. Now we would > like to add some simple web UI (several static html, js

Host UI components with go-swagger

2018-02-05 Thread Al Izi
We've got some json REST API implemented with *go-swagger*. Now we would like to add some simple web UI (several static html, js and css files) hosted by the same http server. The implementation is fairly simple. Swagger YAML: /ui/html/{path}: get: ... produces: - text/html /ui/js/{path}