cleanup REST api
2 files changed