An SDK written in Go that wraps around the Forgejo API, providing additional convenience functions.
468d48c978
- Add the API to search for teams on a organization by the `/orgs/{org}/teams/search` API of Gitea. - The response body of the API is a bit weird because it the JSON can return three fields "data", "error", "ok", first check if there's a general HTTP error. Otherwise when ok is set to false, return a error with the given error message of the error field. When ok is set to true, simply return the data. CC @fnetx Co-authored-by: Andrew Thornton <art27@cantab.net> Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/577 Reviewed-by: Andrew Thornton <art27@cantab.net> Reviewed-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Gusted <williamzijl7@hotmail.com> Co-committed-by: Gusted <williamzijl7@hotmail.com> |
||
---|---|---|
.github | ||
docs | ||
gitea | ||
.changelog.yml | ||
.drone.yml | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.revive.toml | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
DCO | ||
LICENSE | ||
Makefile | ||
README.md |
Gitea SDK for Go
This project acts as a client SDK implementation written in Go to interact with the Gitea API implementation. For further informations take a look at the current documentation.
Note: function arguments are escaped by the SDK.
Use it
import "code.gitea.io/sdk/gitea"
Version Requirements
- go >= 1.13
- gitea >= 1.11
Contributing
Fork -> Patch -> Push -> Pull Request
Authors
License
This project is under the MIT License. See the LICENSE file for the full license text.