add theme rest api endpoint
add test for theme rest api