Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/third nav retrieval #71

Merged
merged 3 commits into from
Nov 13, 2020
Merged

Feat/third nav retrieval #71

merged 3 commits into from
Nov 13, 2020

Conversation

kwajiehao
Copy link
Contributor

Overview

This PR introduces a new endpoint, GET /sites/:siteName/collections/:collectionName/pages, which responds with the page structure of the collection being queried. It allows the requester to know the order of the pages, as well as whether they are in third nav sections, and the title + file names of all files and third nav sections.

Jie Hao Kwa added 3 commits November 11, 2020 13:57
This commit adds a new endpoint, GET /sites/:siteName/collections/:collectionName/pages,
which retrieves the page details (including what type of page it is,
third nav or not) of all pages in a collection. This is primarily
helpful for retrieving information about third nav sections in
any given collection.
This commit adds a route-utils.js file, which contains useful
util functions for common CMS operations, such as reading from
a collection page, or simple page, or creating a file in the _data
folder.
Copy link
Contributor

@alexanderleegs alexanderleegs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kwajiehao kwajiehao merged commit 9a023a7 into staging Nov 13, 2020
@kwajiehao kwajiehao deleted the feat/third-nav-retrieval branch November 13, 2020 08:38
harishv7 pushed a commit that referenced this pull request Feb 17, 2023
* feat: add endpoint to retrieve details of all pages in collection

This commit adds a new endpoint, GET /sites/:siteName/collections/:collectionName/pages,
which retrieves the page details (including what type of page it is,
third nav or not) of all pages in a collection. This is primarily
helpful for retrieving information about third nav sections in
any given collection.

* feat: add util functions for route functions

This commit adds a route-utils.js file, which contains useful
util functions for common CMS operations, such as reading from
a collection page, or simple page, or creating a file in the _data
folder.

* fix: import required dependencies

Co-authored-by: Jie Hao Kwa <[email protected]>
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.

2 participants