Add search teams on org API #577

Merged
jolheiser merged 3 commits from Gusted/go-sdk:add-search-team-org into master 2022-04-26 19:21:25 +00:00
Contributor
  • 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

- 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
Gusted added 1 commit 2022-04-08 23:10:14 +00:00
Add search teams on org API
- 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 true,
return a error with the given error message of the error field. When
that ok is set to true, simply return the data.
Some checks failed
continuous-integration/drone/pr Build is failing
dba9418b29
Gusted added 1 commit 2022-04-08 23:15:19 +00:00
Fix linting
Some checks failed
continuous-integration/drone/pr Build is failing
341cefa1e4
zeripath added 1 commit 2022-04-19 19:32:25 +00:00
Merge branch 'master' into add-search-team-org
All checks were successful
continuous-integration/drone/pr Build is passing
94b44a79a2
zeripath approved these changes 2022-04-19 19:32:59 +00:00
jolheiser approved these changes 2022-04-26 19:21:13 +00:00
jolheiser left a comment
Owner

We should likely be using strconv instead of fmt for formatting bools/ints as strings, but it looks consistent with the current style so I won't hold this particular PR back.

We should likely be using `strconv` instead of `fmt` for formatting bools/ints as strings, but it looks consistent with the current style so I won't hold this particular PR back.
jolheiser merged commit 468d48c978 into master 2022-04-26 19:21:25 +00:00
Gusted deleted branch add-search-team-org 2022-04-26 19:22:54 +00:00
Sign in to join this conversation.
No description provided.