api/plan.go
func listPlans(w http.ResponseWriter, r *http.Request, t auth.Token) error {
	plans, err := servicemanager.Plan.List()
	if err != nil {
		return err
	}
	if len(plans) == 0 {
		w.WriteHeader(http.StatusNoContent)
		return nil
	}
	w.Header().Set("Content-Type", "application/json")
	return json.NewEncoder(w).Encode(plans)
}
func listPlans(w http.ResponseWriter, r *http.Request, t auth.Token) error {
	plans, err := servicemanager.Plan.List()
	if err != nil {
		return err
	}
	if len(plans) == 0 {
		w.WriteHeader(http.StatusNoContent)
		return nil
	}
	w.Header().Set("Content-Type", "application/json")
	return json.NewEncoder(w).Encode(plans)
}
// title: plan list
// path: /plans
// method: GET
// produce: application/json
// responses:
//   200: OK
//   204: No content