fix(api): map REST request body in user invite requests (#9054)

# Which Problems Are Solved

The `CreateInviteCode` and `VerifyInviteCode` methods missed the body
mapping.

# How the Problems Are Solved

Added the mapping.

# Additional Changes

None

# Additional Context

Noticed during internal login UI tests using REST

(cherry picked from commit fd70a7de5fdb0c0f315847f0ed0be7bb283ce9f6)
This commit is contained in:
Livio Spring 2024-12-13 11:24:14 +01:00
parent 8f929c5fec
commit 21baec924a
No known key found for this signature in database
GPG Key ID: 26BB1C2FA5952CF0

View File

@ -1091,6 +1091,7 @@ service UserService {
rpc CreateInviteCode (CreateInviteCodeRequest) returns (CreateInviteCodeResponse) {
option (google.api.http) = {
post: "/v2/users/{user_id}/invite_code"
body: "*"
};
option (zitadel.protoc_gen_zitadel.v2.options) = {
@ -1140,6 +1141,7 @@ service UserService {
rpc VerifyInviteCode (VerifyInviteCodeRequest) returns (VerifyInviteCodeResponse) {
option (google.api.http) = {
post: "/v2/users/{user_id}/invite_code/verify"
body: "*"
};
option (zitadel.protoc_gen_zitadel.v2.options) = {