# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)
d = Api::V1::Diagram.create(name: 'default')
c = Api::V1::Canvas.create(name: 'Canvas 1', diagram: d)
Api::V1::Shape.create(label: 'Circle 1', shape_type: 'Circle', canvas: c,
                      pos_x: 10, pos_y: 5,
                      descriptors: '{ "radius": 10 }'
                     )
Api::V1::Shape.create(label: 'Rectangle 1', shape_type: 'Rectangle', canvas: c,
                      pos_x: 15, pos_y: 0,
                      descriptors: '{ "side_x": 5, "side_y": 10 }'
                     )
