License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
The Github Repo Contents API, as documented at https://developer.github.com/v3/repos/contents/
Synopsis
- contentsForR :: Name Owner -> Name Repo -> Text -> Maybe Text -> Request k Content
- readmeForR :: Name Owner -> Name Repo -> Request k Content
- archiveForR :: Name Owner -> Name Repo -> ArchiveFormat -> Maybe Text -> GenRequest 'MtRedirect rw URI
- createFileR :: Name Owner -> Name Repo -> CreateFile -> Request 'RW ContentResult
- updateFileR :: Name Owner -> Name Repo -> UpdateFile -> Request 'RW ContentResult
- deleteFileR :: Name Owner -> Name Repo -> DeleteFile -> GenRequest 'MtUnit 'RW ()
- module GitHub.Data
Querying contents
:: Name Owner | |
-> Name Repo | |
-> ArchiveFormat | The type of archive to retrieve |
-> Maybe Text | Git commit |
-> GenRequest 'MtRedirect rw URI |
Get archive link. See https://developer.github.com/v3/repos/contents/#get-archive-link
Create
createFileR :: Name Owner -> Name Repo -> CreateFile -> Request 'RW ContentResult Source #
Create a file. See https://developer.github.com/v3/repos/contents/#create-a-file
Update
updateFileR :: Name Owner -> Name Repo -> UpdateFile -> Request 'RW ContentResult Source #
Update a file. See https://developer.github.com/v3/repos/contents/#update-a-file
Delete
deleteFileR :: Name Owner -> Name Repo -> DeleteFile -> GenRequest 'MtUnit 'RW () Source #
Delete a file. See https://developer.github.com/v3/repos/contents/#delete-a-file
module GitHub.Data