I think they meant like ASP.NET MVC or ASP.NET Web API, both of which can respond with JSON out of the box just by returning a model instance from a controller method...
I'm thinking this would not be that hard to write. If OP is interested, here are my thoughts:
Server needs to either be running Arch or running Arch in a virtual machine. (I have a pretty powerful ESXi host to test with.)
Extend yaourt or aur.sh to optionally connect to a remote server for fetching sources and building a package. (/etc/yaourtrc? CLI switches?) The idea here is to be seamless, fetch official packages directly, use the build server for AUR packages.
Use SSH or HTTP to connect to the server? Does OP want to run a web server? Could this become the basis for a free web service that multiple people could connect to? Actually, the script could be written to handle both cases.
Cache built packages. Provide an option to force a rebuild of a package if needed.
If HTTP support is needed, there would be a need to make multiple requests:
Start a build. If the package is already built and in the cache, and we are not forcing a rebuild, indicate as such, and go to #3.
Build status. Fetch log output since the last Build Status request. This request would be made multiple times until the build is complete, if needed. When the build is complete, indicate as such. Go to #3.
Package Download. Simply download and install the tar.xz package with Pacman.
I'm certainly over thinking this, but it could be a fun project.
I think they meant like ASP.NET MVC or ASP.NET Web API, both of which can respond with JSON out of the box just by returning a model instance from a controller method...
I'm thinking this would not be that hard to write. If OP is interested, here are my thoughts:
If HTTP support is needed, there would be a need to make multiple requests:
I'm certainly over thinking this, but it could be a fun project.