refactor endpoint metadata such that malli schemas can be reused
refactor endpoint metadata such that malli schemas can be reused