Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # index.json.rabl
- collection @cities
- attributes :name, :population, :flag, :climate, :area
- child :city_hall do
- attributes :id, :name, :region, :location
- end
- child :neighborhoods do
- attributes :id, :name, :area, :population
- end
- child :inhabitants => :people do
- attributes :id, :name, :age, :profile_picture_url
- end
- child :major do
- attributes :id, :name, :mandate_start_date, :mandate_finish_date
- end
Add Comment
Please, Sign In to add comment