Ghost/ghost/collections
Naz cdae2a978d Added ability to fetch collection posts by slug
closes https://github.com/TryGhost/Arch/issues/27

- We need a more convenient method of fetching posts belonging to a collection than by collection's "id". This change adds an alias to the existing endpoint `GET /collections/:id/posts/`. A non-valid ObjectID in the parameter is treated as a slug.
2023-07-11 09:30:01 +08:00
..
src Added ability to fetch collection posts by slug 2023-07-11 09:30:01 +08:00
test Added ability to fetch collection posts by slug 2023-07-11 09:30:01 +08:00
.eslintrc.js Update eslint and c8 to support using TS interfaces 2023-06-01 14:25:49 +07:00
package.json Update dependency typescript to v5.1.6 2023-06-29 08:24:30 +02:00
README.md Added a collections package with CRUD logic 2023-05-16 12:21:31 +07:00
tsconfig.json Updated collections package to use .d.ts for external lib types 2023-05-24 12:47:20 -04:00

Collections

Manages everything to do with Collections

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests