Skip to content

feat(agents): add GET /api/v1/agents/:id to fetch a single agent (#113) - #201

Merged
David-patrick-chuks-02 merged 2 commits into
Lilly-Protocol:mainfrom
rafaio1:feat/get-agent-by-id-113
Sep 2, 2026
Merged

feat(agents): add GET /api/v1/agents/:id to fetch a single agent (#113)#201
David-patrick-chuks-02 merged 2 commits into
Lilly-Protocol:mainfrom
rafaio1:feat/get-agent-by-id-113

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Clients creating an agent had no way to fetch it back by id without
listing all agents. This adds the missing read-by-id endpoint.

Changes

  • Added getAgent() to agents.service.ts
  • Added getAgent controller returning 200 with agent or 404 envelope
  • Registered GET /:id route in agents.routes.ts
  • Added 3 tests covering found, not-found, and seed agent retrieval

Testing

All tests passing. Lint and build clean.

Closes #113

root and others added 2 commits August 25, 2026 22:00
…ly-Protocol#113)

Clients creating an agent had no way to fetch it back by id without
listing all agents. This adds the missing read-by-id endpoint.

- Added getAgent() to agents.service.ts
- Added getAgent controller returning 200 with agent or 404 envelope
- Registered GET /:id route in agents.routes.ts
- Added updateAgentSchema and full service methods (needed since main
  lacks merged PRs for delete/pause-resume)
- Added 3 tests covering found, not-found, and seed agent retrieval
- All tests passing, lint and build clean

Closes Lilly-Protocol#113
@David-patrick-chuks-02
David-patrick-chuks-02 merged commit d793f99 into Lilly-Protocol:main Sep 2, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bounty: $20] Add GET /api/v1/agents/:id to fetch a single agent

3 participants