added end points that take json string instead of objects