-
Notifications
You must be signed in to change notification settings - Fork 12
Api Documentation
All APIs are reachable through http:///api/json/
Outputs the current status, e.g.
{"status": true, "queuedimg": 0, "memfree": "494", "totalimg": 585, "successimg": 505, "failedimg": 80, "loadavg": "2.06, 1.66, 1.13", "memused": "508"}
outputs all available targets, e.g.:
["ar71xx-generic-attitude_adjustment-35817", "atheros-attitude_adjustment-35864", "brcm47xx-attitude_adjustment-35817", "brcm63xx-attitude_adjustment-35864", "x86-generic-attitude_adjustment-35864", "x86-kvm_guest-attitude_adjustment-35864"]
Query status about a build. Requires id and rand arguments.
Usage example: http:///api/json/buildstatus?id=1234&rand=36a419d3bd7ad460d16b4773cc3b5d5a
Returns:
{ "status": "0", "files": [ "openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin", "md5sums", "openwrt-ar71xx-generic-vmlinux.elf", "openwrt-ar71xx-generic-vmlinux.bin", "openwrt-ar71xx-generic-vmlinux.gz", "openwrt-ar71xx-generic-root.squashfs-64k", "build.log", "openwrt-ar71xx-generic-vmlinux-lzma.elf", "openwrt-ar71xx-generic-root.squashfs", "openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin", "openwrt-ar71xx-generic-uImage-lzma.bin", "openwrt-ar71xx-generic-vmlinux.lzma", "openwrt-ar71xx-generic-uImage-gzip.bin", "openwrt-ar71xx-generic-rootfs.tar.gz" ], "queued": 0, "downloaddir": "http://meshkit.freifunk.net/images//36a419d3bd7ad460d16b4773cc3b5d5a/bin/" }
Defined statuses are: 0: Sucessful 1: Queued, 2: Failed
Requires: target
Submit a build image job into the build_queue.
Usage example: http:///api/json/buildimage?target=ar71xx-generic-attitude_adjustment-35817&profile=TLWR1043&community=augsburg&noconf=1
Returns: { "rand": "af851246c99b82ac8b3cf3fbe30ff100", "errors": {}, "id": 586 }
In case of errors, e.g. invalid data the errors dictonary contains all error messages.