| Maintainer | Brandon Chinn <brandonchinn178@gmail.com> |
|---|---|
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| 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.