extends Reference const IntPoint = preload("IntPoint.gd")
func _ready(): pass # Replace with function body.
#func _process(delta): # pass
func Create(ip : IntPoint): Websocket.send("POST","/v1/point",{"id": ip.id, "x": ip.x, "y": ip.y})
func Read(id : String): Websocket.send("GET","/v1/point/"+id,null)
func Update(ip : IntPoint): Websocket.send("PATCH","/v1/point/"+str(ip.id),{"id": ip.id, "x": ip.x, "y": ip.y})
func Delete(id : String): Websocket.send("DELETE","/v1/point/"+id,null)