Extend block model with hash, add regex

Begin api controller