Add Docs on how to deal with this breaking change
doResponse should return responce in all cases, to prosses things manualy if wanted
helper func return http response
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/416
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Update Documentation for Oauth2 Application delete
also fix variable names to be similar to existing functions
Signed-off-by: Dan Molik <dan@danmolik.com>
Add Get/Update for oauth2 apps
Add a get by id function for oauth applications, and add an update
function, also ensuring the oauth2 update regenerates the client
secret.
Signed-off-by: Dan Molik <dan@danmolik.com>
Co-authored-by: Dan Molik <dan@danmolik.com>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/311
Reviewed-by: 6543 <6543@noreply.gitea.io>
Reviewed-by: Andrew Thornton <art27@cantab.net>
notification Check now always return json
make fmt relicts
CheckNotifications: one api call is enouth
add getResponseWithStatus to handle Response customized based on Status
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/308
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Add Create/Get/Delete for oauth2 apps
Add Create, List, and Delete for Oauth2 applications.
Tests were added as well.
Co-authored-by: Dan Molik <dan@danmolik.com>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/305
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: 6543 <6543@noreply.gitea.io>