Thanks Steven. Appreciate your response.

Defining REST API is quite simple. I was looking for a code, which
receives the config, validates the config, updates the config file properly
and restarts.


On Wed, May 7, 2014 at 2:48 AM, Steven Le Roux <[email protected]> wrote:

> You can take this python config generator
> https://github.com/StevenLeRoux/webhub as a start.
>
> It uses an agnostic flat config format that makes you able to generate
> config for an other reverse proxy like httpd, nginx, etc... but to use
> an API I would use a nested format instead.
>
> You need to just add a tornado frontend to have the Rest API, and to
> maintain the config in memory and persist it (to file or document
> store) to load it back at startup.
>
> Not hard.
>
> If you does not know how to start, I could sketch a basic REST python API.
>
> On Wed, May 7, 2014 at 9:11 AM, Naveen Chandra Sekhara
> <[email protected]> wrote:
> > Hi All,
> >  Greetings.
> >
> > Is there any GPL code which is implemented in Python.
> > This code receives REST messages(proably through Flask or something),
> > updates cfg file and restarts.
> > Surprisingly cannot find anything online through HAProxy is so popular.
> >
> > Thanks for your help.
> > Best Regards,
> > Naveen
>
>
>
> --
> Steven Le Roux
> Jabber-ID : [email protected]
> 0x39494CCB <[email protected]>
> 2FF7 226B 552E 4709 03F0  6281 72D7 A010 3949 4CCB
>

Reply via email to