code: func (rd *Resource) generateMethods(r *raml.Resource) {
  	rd.addMethod(r, r.Get, "Get")
  	rd.addMethod(r, r.Post, "Post")
  	rd.addMethod(r, r.Put, "Put")
  	rd.addMethod(r, r.Patch, "Patch")
  	rd.addMethod(r, r.Delete, "Delete")
  	rd.addMethod(r, r.Options, "Options")
  
  	for _, v := range r.Nested {
  		rd.generateMethods(v)
  	}
  }
docs: // GenerateMethods generates all methods of a resource recursively