Skip to content

GET list of child categories by selected Category by ID #430

Description

@lobsam

Introduction

The OpenPecha backend has a Categories API at /v2/categories/ that manages hierarchical categories for organizing texts. Categories support multi-language localization and belong to specific applications.

Requirement Request from Webuddhist

For Webuddhist to get all child categories of a selected category, you would need:

  • GET /v2/categories/{category_id} endpoint that returns:

    • The category's full details (id, title, description, parent_id)
    • The category's children list (already included in the children field)
  • This would allow Webuddhist to:

    • Fetch a specific category by ID
    • Get its children IDs from the children field
    • Optionally fetch those children's details if needed

Tasks

  • Create new endpoint to get list of child categories of selected category by ID
  • write a test case for api endpoint

Reviewer

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions