Restful api relations