configured api for one to many relationship and added httparty gem to access them