func AddItem(param ops.AddItemParams) middleware.Responder {
	title := param.ItemTitle
	newID := strconv.Itoa(lastID)
	newItem := Item{ID: newID, Title: title}
	items[newID] = newItem
	lastID++

	resp := models.AddResponse{ID: &newID, Title: &title}
	return ops.NewAddItemAccepted().WithPayload(&resp)
}
// AddItem adds a new todo item to the list
AddItem adds a new todo item to the list
// AddItem adds a new todo item to the list
func AddItem(param ops.AddItemParams) middleware.Responder {
	title := param.ItemTitle
	newID := strconv.Itoa(lastID)
	newItem := Item{ID: newID, Title: title}
	items[newID] = newItem
	lastID++
	resp := models.AddResponse{ID: &newID, Title: &title}
	return ops.NewAddItemAccepted().WithPayload(&resp)
}
func AddItem ( param ops . AddItemParams ) middleware . Responder { title := param . ItemTitle newID := strconv . Itoa ( lastID ) newItem := Item { ID : newID , Title : title } items [ newID ] = newItem lastID ++ resp := models . AddResponse { ID : & newID , Title : & title } return ops . NewAddItemAccepted ( ) . WithPayload ( & resp ) }
AddItem adds a new todo item to the list
AddItem adds a new todo item to the list