kolaente
dab6ac620d
feat(api/v2): add team CRUD endpoints
...
Adds Team CRUD on /api/v2 mirroring the labels reference resource:
list, read, create, update, delete under /teams[/{id}].
- The list op exposes an include_public query param bound onto the
model so Team.ReadAll can surface public teams (gated by the instance
public-teams setting).
- Read ops emit an ETag and honor If-None-Match (304).
- Model fields gain doc: tags; server-controlled fields are marked
readOnly:true.
- Self-registers via init()/AddRouteRegistrar; no routes.go change.
- New webtest TestHumaTeam (named to avoid clashing with the v1 model
TestTeam) covers list/read/create/update/delete plus negatives
(non-member 403, nonexistent 403/404) and ETag/304.
2026-06-03 18:56:12 +00:00
..
2026-04-20 18:55:06 +00:00
2026-04-20 18:55:06 +00:00
2026-04-20 18:55:06 +00:00
2026-05-31 12:56:57 +00:00
2026-05-31 12:56:57 +00:00
2026-03-30 12:28:15 +00:00
2026-03-30 12:28:15 +00:00
2026-03-30 12:28:15 +00:00
2026-05-15 17:25:09 +02:00
2026-05-01 14:44:10 +00:00
2026-05-15 17:25:09 +02:00
2026-05-15 17:25:09 +02:00
2026-05-01 14:44:10 +00:00
2026-05-01 14:44:10 +00:00
2026-05-01 14:44:10 +00:00
2026-05-20 21:02:14 +00:00
2026-05-20 21:02:14 +00:00
2026-04-09 16:07:48 +00:00
2026-04-09 09:26:04 +00:00
2026-03-23 16:23:15 +01:00
2026-04-09 10:45:34 +00:00
2026-04-09 10:45:34 +00:00
2026-02-25 11:03:02 +01:00
2026-04-09 15:43:04 +00:00
2026-02-25 11:03:02 +01:00
2026-04-09 15:43:04 +00:00
2026-05-31 15:27:44 +02:00
2026-04-09 15:38:07 +00:00
2026-04-09 15:38:07 +00:00
2026-05-30 13:48:01 +00:00
2026-02-17 18:01:05 +01:00
2026-03-08 16:03:47 +01:00
2026-06-02 11:55:25 +00:00
2026-05-30 13:48:01 +00:00
2026-03-27 23:05:04 +00:00
2026-05-15 17:25:09 +02:00
2026-05-15 17:25:09 +02:00
2026-03-27 23:05:04 +00:00
2026-04-09 16:22:56 +00:00
2026-02-25 11:03:02 +01:00
2026-04-20 18:55:06 +00:00
2026-02-25 11:56:25 +01:00
2026-02-25 11:56:25 +01:00
2026-04-20 18:55:06 +00:00
2026-02-25 11:03:02 +01:00
2026-03-03 12:46:34 +01:00
2026-04-11 17:20:53 +00:00
2026-02-25 11:03:02 +01:00
2026-04-20 18:55:06 +00:00
2026-02-25 11:03:02 +01:00
2026-03-23 12:06:16 +00:00
2026-04-20 18:55:06 +00:00
2026-06-01 13:04:34 +00:00
2026-06-02 07:38:08 +00:00
2026-02-25 11:03:02 +01:00
2026-04-09 07:25:57 +00:00
2026-04-09 07:25:57 +00:00
2026-02-25 10:30:25 +01:00
2026-02-25 11:03:02 +01:00
2026-05-20 21:02:14 +00:00
2026-02-25 11:03:02 +01:00
2026-05-26 19:43:16 +00:00
2026-04-09 16:22:56 +00:00
2026-05-06 16:08:16 +02:00
2026-02-26 16:09:13 +01:00
2026-02-26 16:09:13 +01:00
2026-05-19 10:35:43 +02:00
2026-06-01 13:04:34 +00:00
2026-03-03 12:46:34 +01:00
2026-03-29 00:43:58 +01:00
2026-03-04 17:20:26 +01:00
2026-06-01 14:13:39 +02:00
2026-03-08 19:45:53 +01:00
2026-03-08 19:45:53 +01:00
2026-04-09 07:25:57 +00:00
2026-04-09 07:25:57 +00:00
2026-04-05 12:20:35 +00:00
2026-03-03 12:46:34 +01:00
2026-03-08 19:45:53 +01:00
2026-03-08 19:45:53 +01:00
2026-02-25 12:15:28 +01:00
2026-04-02 16:30:23 +00:00
2026-05-31 12:56:57 +00:00
2026-04-11 20:44:28 +00:00
2026-05-31 12:56:57 +00:00
2026-04-20 18:55:06 +00:00
2026-03-23 12:06:16 +00:00
2026-04-20 18:55:06 +00:00
2026-06-03 18:56:12 +00:00
2026-05-06 16:08:16 +02:00
2026-05-01 14:44:10 +00:00
2026-05-01 14:44:10 +00:00
2026-03-08 19:45:53 +01:00
2026-04-09 09:26:04 +00:00