func (c *endpointClient) Plans(requestID string) ([]Plan, error) {
	url := "/resources/plans"
	resp, err := c.issueRequest(url, "GET", nil, requestID)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	if resp.StatusCode != http.StatusOK {
		return nil, nil
	}
	result := []Plan{}
	err = c.jsonFromResponse(resp, &result)
	if err != nil {
		return nil, err
	}
	return result, nil
}
func (c *endpointClient) Plans(requestID string) ([]Plan, error) {
	url := "/resources/plans"
	resp, err := c.issueRequest(url, "GET", nil, requestID)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	if resp.StatusCode != http.StatusOK {
		return nil, nil
	}
	result := []Plan{}
	err = c.jsonFromResponse(resp, &result)
	if err != nil {
		return nil, err
	}
	return result, nil
}
func ( c * endpointClient ) Plans ( requestID string ) ( [ ] Plan , error ) { url := " " resp , err := c . issueRequest ( url , " " , nil , requestID ) if err != nil { return nil , err } defer resp . Body . Close ( ) if resp . StatusCode != http . StatusOK { return nil , nil } result := [ ] Plan { } err = c . jsonFromResponse ( resp , & result ) if err != nil { return nil , err } return result , nil }
// Plans returns the service plans.
// The api should be prepared to receive the request,
// like below:
// GET /resources/plans
Plans returns the service plans . The api should be prepared to receive the request like below : GET / resources / plans