code: func (r *Resource) setMethods(traitsMap map[string]Trait, apiDef *APIDefinition) {
  	if r.Get != nil {
  		r.Get.postProcess(r, "GET", traitsMap, apiDef)
  	}
  	if r.Post != nil {
  		r.Post.postProcess(r, "POST", traitsMap, apiDef)
  	}
  	if r.Put != nil {
  		r.Put.postProcess(r, "PUT", traitsMap, apiDef)
  	}
  	if r.Patch != nil {
  		r.Patch.postProcess(r, "PATCH", traitsMap, apiDef)
  	}
  	if r.Head != nil {
  		r.Head.postProcess(r, "HEAD", traitsMap, apiDef)
  	}
  	if r.Delete != nil {
  		r.Delete.postProcess(r, "DELETE", traitsMap, apiDef)
  	}
  	if r.Options != nil {
  		r.Options.postProcess(r, "OPTIONS", traitsMap, apiDef)
  	}
  }
docs: // set methods set all methods name
  // and add it to Methods slice