Skip to content

Interface endpoint agent did not fill authorizationActor #1086

Description

@samchon

The actual case:

@Controller("/redditClone/members")
export class RedditcloneMembersController {
  /**
   * Update the authenticated member's own profile information.
   *
   * This endpoint allows currently authenticated members to update their profile details including display name, bio text, and avatar URL. The operation operates on the currently logged-in user's profile and requires authentication.
   *
   * ## Security and Authorization
   *
   * This endpoint requires valid authentication. Members can only update their own profile information and cannot modify other users' profiles.
   *
   * ## Profile Fields
   *
   * - **displayName**: The display name shown in user interface (optional)
   * - **bio**: User's bio/profile description text (optional)
   * - **avatarUrl**: URL to user's avatar image (optional)
   *
   * ## Response Information
   *
   * The response returns the updated member profile with all fields including the automatically maintained timestamps (createdAt, updatedAt, deletedAt).
   *
   * @param connection
   * @param body Profile update information including displayName, bio, and avatarUrl fields
   * @x-autobe-authorization-type null
   * @x-autobe-authorization-actor null
   * @x-autobe-specification Update the authenticated member's profile information from the request body.
   * Accept partial profile updates for displayName, bio, and avatarUrl fields.
   * Validate request body fields against member schema constraints.
   * Update the member record with new values and refresh timestamps.
   * Return the updated member profile in the response body.
   * @nestia Generated by Nestia - https://github.com/samchon/nestia
   */
  @TypedRoute.Patch()
  public async update(
    @TypedBody()
    body: IRedditCloneMember.IUpdate,
  ): Promise<IRedditCloneMember> {
    try {
      return await patchRedditCloneMembers({
        body,
      });
    } catch (error) {
      console.log(error);
      throw error;
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions