Skip to content

Endpoint to return a list of posts #83

@fennifith

Description

@fennifith

Implement a GET /posts endpoint that allows pagination through all posts, and returns the full data required to display the post card (banner URL, title, author id/name, excerpt, publish date, word count, tags)

Query parameters:

  • page=1
  • limit=20
  • sort=date
  • author=crutchcorn

This should implicitly filter out posts without a publishedAt date, or where noindex=true.

NOTE: excerpt, word count, and tags are not currently in the posts db table

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

🎟️ Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions