code: func (r *ResourceDefinition) CanonicalAction() *ActionDefinition {
  	name := r.CanonicalActionName
  	if name == "" {
  		name = "show"
  	}
  	ca, _ := r.Actions[name]
  	return ca
  }
docs: // CanonicalAction returns the canonical action of the resource if any.
  // The canonical action is used to compute hrefs to resources.