preliminary work combining REST and JSON api generators