api_url.Rd
construct an api_url
api_url( scheme = getOption("ghpm.scheme", "https"), hostname = getOption("ghpm.hostname", "api.github.com"), graphql = TRUE )
scheme | https or http |
---|---|
hostname | hostname |
graphql | return the graphql url, false |
The GraphQL endpoint The REST API v3 has numerous endpoints; the GraphQL API v4 has a single endpoint:
http(s)://[hostname]/api/graphql vs for v3 it is at http(s)://[hostname]/api/v3
for github.com https://api.github.com and https://api.github.com/graphql