func (r *Request) Resource(s string) *Request {
	r.resource = s
	return r
}
Resource is the type of resource the operation is
for, such as "services", "endpoints" or "pods"
package api
import (
	"bytes"
	"context"
	"encoding/json"
	"errors"
	"fmt"
	"io"
	"net/http"
	"net/url"
	"github.com/micro/micro/v3/service/logger"
)
type Request struct {
	context   context.Context
	client    *http.Client
	header    http.Header
	params    url.Values
	method    string
	host      string
	namespace string
	resource     string
	resourceName *string
	subResource  *string
	body         io.Reader
	err error
}
type Params struct {
	LabelSelector map[string]string
	Annotations   map[string]string
	Additional    map[string]string
}
func (r *Request) verb(method string) *Request {
	r.method = method
	return r
}
func (r *Request) Context(ctx context.Context) {
	r.context = ctx
}
func (r *Request) Get() *Request {
	return r.verb("GET")
}
func (r *Request) Post() *Request {
	return r.verb("POST")
}
func (r *Request) Put() *Request {
	return r.verb("PUT")
}
func (r *Request) Patch() *Request {
	return r.verb("PATCH")
}
func (r *Request) Delete() *Request {
	return r.verb("DELETE")
}
func (r *Request) Namespace(s string) *Request {
	if len(s) > 0 {
		r.namespace = s
	}
	return r
}