This repository was archived by the owner on Feb 22, 2026. It is now read-only.
This repository was archived by the owner on Feb 22, 2026. It is now read-only.
anon/backend) : Review Read APIs : Get by ID + Company-scoped feed #559
For any queries, or anything, join out [Telegram Group](https://t.me/shogenlabs) or contact [Poulav](https://t.me/impoulav), [Soham](https://t.me/tosoham) or [Rahul](https://t.me/darkdanate)
Title
Review Read APIs: Get by ID + Company-scoped Feed
Description
Type of Issue: Feature / Backend / API
Directory:
anon/backendTask :
Add endpoints:
GET /posts/{id}→ fetch a single review by idGET /companies/{slug}/posts→ list reviews for a company (cursor pagination)Query params for company feed:
limit (≤50),cursor,since,until,tag?,status?=publishedResponse shape:
{ items: [...], next_cursor }with stable ordering bycreated_at DESC, id DESCRedact any stored raw text (Mongo) in public responses; serve only sanitized/canonical text
Return
410 Goneif review is soft-deleted;404if never existedAdd DB composite indexes to support ordering and filters (
(company_id, created_at DESC, id DESC))Tests: single fetch (200/404/410), company feed pagination edges, filter combinations
Current:
GET /postsexists; no single-itemGETor company-scoped aliasExpected:
GET /posts/{id}returns200 {id, company_slug, text, tags, created_at, status}(sanitized text)next_cursorwhen more data available