Documentation ¶
Overview ¶
Package rest provides types/client for making requests to the postman REST api.
Package rest provides types/client for making requests to the postman REST api.
Package rest provides types/client for making requests to the postman REST api.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles interacting with the postman api.
type Error ¶
type Error struct { Name string `json:"name"` Message string `json:"message"` Details map[string]string `json:"details"` }
Error represents the error fields from the postman api error response.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON customizes the json unmarshalling of Error.
type ErrorResponse ¶
type ErrorResponse struct {
Error *Error `json:"error"`
}
ErrorResponse represents an error response from the postman api.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option represents functional options for configuring the client.
func WithDebugLog ¶
WithDebugLog configures the io.Writer to send debug logging output to.
func WithHTTPClient ¶
WithHTTPClient configures the client to use the given http.Client.
type RequestOption ¶
type RequestOption interface {
// contains filtered or unexported methods
}
RequestOption represents functional options for configuring client requests.
func WithContentType ¶
func WithContentType(c string) RequestOption
WithContentType specifies the content type for the request
func WithWorkspace ¶
func WithWorkspace(w string) RequestOption
WithWorkspace specifies the target workspace for the api operation.