Maintainer | Brandon Chinn <brandon@leapyear.io> |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
GitHub.REST.Endpoint
Description
Define the GHEndpoint
helper type for defining a call to a GitHub API endpoint.
Synopsis
- data GHEndpoint = GHEndpoint {}
- type EndpointVals = [KeyValue]
- type GitHubData = [KeyValue]
- endpointPath :: GHEndpoint -> Text
- renderMethod :: GHEndpoint -> Method
Documentation
data GHEndpoint Source #
A call to a GitHub API endpoint.
Constructors
GHEndpoint | |
Fields
|
type EndpointVals = [KeyValue] Source #
type GitHubData = [KeyValue] Source #
endpointPath :: GHEndpoint -> Text Source #
Return the endpoint path, populated by the values in endpointVals
.
renderMethod :: GHEndpoint -> Method Source #
Render the method of the endpoint.