Transforms a GitHub REST API endpoint into generic request options
Returns a new endpoint interface with new defaults
Object with current default route and parameters
Merges current endpoint defaults with passed route and parameters, without transforming them into request options.
Request method + URL. Example: 'GET /orgs/{org}'
Optionalparameters: PURL, query or body parameters, as well as headers, mediaType.{format|previews}, request, or baseUrl.
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