implemented jbuilder for api