forgejo/routers/api/v1
Bruno Sofiato 689fb82a70
Inclusion of rename organization api (#33303)
This adds an endpoint (`/orgs/{org}/rename`) to rename organizations.

I've modeled the endpoint using the rename user endpoint --
`/admin/users/{username}/rename` -- as base.

It is the 1st time I wrote a new API endpoint (I've tried to follow the
rename users endpoint code while writing it). So feel free to ping me if
there is something wrong or missing.

Resolves #32995

---------

Signed-off-by: Bruno Sofiato <bruno.sofiato@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 040c830dec5c727a56d16df62b1673bce6fca645)

Conflicts:
	routers/api/v1/admin/user.go
  ignore this unrelated change
	templates/swagger/v1_json.tmpl
  regenerate
	tests/integration/api_org_test.go
  port as a standalone test instead of refactoring the tests
2025-02-02 12:01:58 +01:00
..
activitypub [PORT] Remove SHA1 for support for ssh rsa signing (#31857) (#5303) 2025-01-17 03:17:10 +00:00
admin feat: add configurable cooldown to claim usernames (#6422) 2025-01-24 04:16:56 +00:00
misc Added alt's to <img> 2025-01-31 21:22:00 +00:00
notify drop log.Error in ReadRepoNotifications 2024-03-24 07:12:31 +01:00
org Inclusion of rename organization api (#33303) 2025-02-02 12:01:58 +01:00
packages remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
repo Add search action jobs for API routes, repo, org and global level (#6300) 2025-01-14 11:17:42 +00:00
settings Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
shared Add search action jobs for API routes, repo, org and global level (#6300) 2025-01-14 11:17:42 +00:00
swagger Inclusion of rename organization api (#33303) 2025-02-02 12:01:58 +01:00
user chore: Remove ChangeMilestoneStatus (#6741) 2025-01-30 11:09:53 +00:00
utils Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
api.go Inclusion of rename organization api (#33303) 2025-02-02 12:01:58 +01:00