dynamic rest apis