Added REST functionality for configAPI

Can we do `else if` to be consistent with the other validation we have?