API Table building and basic request middleware