Page 1 of 1

WAPT interface (API or other?)

Published: November 15, 2018 - 09:29
by jothoma1
Hello,
We have a client who uses WAPT. We would like to try interfacing with their WAPT repository to be able to list the packages, the deployment scope, etc.

Is there a way to do this?
Does WAPT have an API (I haven't found any recent information on this)?
Is it possible to synchronize packages between WAPT and another system? (Where is the physical repository located on the disk?)

I imagine this isn't necessarily a common use case, so if you could provide some clarification, it would be very helpful.
Thank you in advance
. Best regards,
Johan

Re: WAPT interface (API or other?)

Published: November 17, 2018 - 1:10 PM
by sfonteneau
Hello,

For the API you will find what you need in:

/opt/wapt/waptserver/server.py
https://github.com/tranquilit/WAPT/blob ... /server.py

Example to list groups:
https://mysrvwapt.domain.lan/api/v1/groups

Another example:
https://mysrvwapt.domain.lan/api/v1/hosts

We haven't created API documentation yet.
The documentation is in the code.

You can also find the metadata information for the software and group packages in the file:
https://mysrvwapt/wapt/Packages (a zip file containing a flat file)