Transforms a GitHub REST API endpoint into generic request options
Object with current default route and parameters
Returns a new endpoint
interface with new defaults
Merges current endpoint defaults with passed route and parameters, without transforming them into request options.
Merges current endpoint defaults with passed route and parameters, without transforming them into request options.
Returns current default options.
Stateless method to turn endpoint options into request options.
Calling endpoint(options)
is the same as calling endpoint.parse(endpoint.merge(options))
.
method
, url
. Plus URL, query or body parameters, as well as headers
, mediaType.{format|previews}
, request
, or baseUrl
.
Transforms a GitHub REST API endpoint into generic request options