Added preconditions to check parameters of articles api