Logotipo Hedhog

Get Hedhog updates in your inbox

New releases, fresh recipes, and breaking changes — no spam.

tag Submodule

tags

Simple tag catalog with slug, color, status, statistics, and standard CRUD operations.

Source path: libraries/tag/src

Module file: tag.module.ts

Introduction

The Tag module is the flat, non-hierarchical counterpart to Category. It exposes a lightweight catalog of tags identified by slug, optionally styled with color, and enabled or disabled through status.

In practice this module is useful when downstream libraries need flexible labeling without the parent/child complexity of categories. The API adds a small stats endpoint so admin dashboards can show total, active, and inactive tag counts without running their own aggregates.

HTTP Endpoints

6 endpoints

List tags with pagination and optional slug search.

Query
page, pageSize, search

Return total, active, and inactive tag counts.

Get a single tag by ID.

Params
id (int)

Create a new tag.

Update an existing tag.

Params
id (int)

Delete a tag.

Params
id (int)