Compile API route.
Tests for compile API resource.