2 migrate content api to rest