-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feat/get all collections directories (#117) * feat: add RootType Directory This commit adds a RootType to the Directory class so that we can retrieve directories from the root of a repo. * feat: new endpoint for retrieving information on all folders This commit introduces a new GET `/:siteName/folders/all` endpoint which: 1) gets the names of all collections/folders within the repo 2) gets the collection.yml directory config file for each collection * fix: remove _ before sending folder name Co-authored-by: jiehao <[email protected]> * feat: create CollectionConfig which extends Config class, with methods for creating and deleting the collection.yml file * feat: updates Collection class to use CollectionConfig for create, delete and rename functions * fix: updates folders listAll route to use CollectionConfig * fix: adds more details to inline comment for .list() * feat: adds functions to support adding and removing item from CollectionConfig * fix: removes endpoint variable * fix: uses passed siteName variable instead of class variable * fix: destructures err response status * fix: allows Collection.create to take in optional orderArray * fix: rename config to collectionConfig in Collection for clarity * fix: updates Collection.rename to modify collectionName in collection.yml after git tree changes * fix: typo in variable names Co-authored-by: kwajiehao <[email protected]> Co-authored-by: jiehao <[email protected]>
- Loading branch information
1 parent
b5e3e3b
commit c5d982c
Showing
3 changed files
with
133 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters