To avoid the painful installation of the P4 compiler (p4c), since P4.org already builds a docker with the p4c inside, the p4capi is a wrapper that implements a simple REST API so any system can utilize the compiler in an easy manner, all a user need to do is make a POST request with the P4 source file and a JSON with the parameter one normally would use with p4c in the terminal, and the response will be a zip file with the set of files resulting from the compilation.
To avoid the painful installation of the P4 compiler (p4c), since P4.org already builds a docker with the p4c inside, the p4capi is a wrapper that implements a simple REST API so any system can utilize the compiler in an easy manner, all a user need to do is make a POST request with the P4 source file and a JSON with the parameter one normally would use with p4c in the terminal, and the response will be a zip file with the set of files resulting from the compilation.