So that would be a top-down approach where they define the API first using OpenAPI and then generate the code from that. I was planning on just writing the REST client code manually, but I could try putting the REST API I'll be calling into the swagger-codegen page and see what kind of client stubs it generates for me.
Thanks. -----Original Message----- From: slurm-users <slurm-users-boun...@lists.schedmd.com> On Behalf Of Chris Samuel Sent: Saturday, January 25, 2020 9:16 AM To: slurm-users@lists.schedmd.com Subject: Re: [slurm-users] Question about slurm source code and libraries On 25/1/20 8:08 am, dean.w.schu...@gmail.com wrote: > I'm working on the 19.05.4 source code since it is stable, but I would > prefer to use the same C REST library that will be used in 20.02. Does > anyone know what C library that is? They're using OpenAPI (formerly Swagger) for this (see slide 5), and it seems that includes a code generator for various languages. https://swagger.io/tools/swagger-codegen/ Their source code is on Github here: https://github.com/swagger-api/swagger-codegen All the best, Chris -- Chris Samuel : http://www.csamuel.org/ : Berkeley, CA, USA