Skip to content

[Backend] — Feature: Add GET /users/:address/follow-stats follower and following count #1161

Description

@Olowodarey

Background

GET /users/:address returns the full user profile without follower/following
counts. Clients that display a "Followers: 142 | Following: 38" badge must make
separate list calls with limit=1 just to get the count. A dedicated lightweight
endpoint is more efficient.

Goal

Add GET /users/:address/follow-stats returning counts only.

Requirements

  1. In UsersService, add:

  2. Add to UsersController as a @Public() route.

  3. Add unit tests in src/users/users.service.spec.ts:

Acceptance criteria

  • Public endpoint.
  • Returns accurate counts without returning the lists.

Metadata

Metadata

Assignees

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