Comcat — company catalogue#
The module derives from the classifieds, so the patterns are nearly identical.
Every resource offers the standard set of actions
get, get-by, get-all, save, update-columns, delete, delete-all —
unless stated otherwise. See the CRUD pattern.
Resources#
| Resource | Note |
|---|---|
advert |
company profile — owner, event |
advert-report |
reporting |
advert-statistics |
statistics |
category |
trade — tree, public |
parameter |
parameter — tree, public |
parameter-group |
parameter group |
parameter-rule |
display rule |
category-parameter-rel |
parameter targeting |
response |
reply — owner |
watchdog |
saved search — owner |
tariff |
tariff |
payment-item |
payment item |
Differences from the classifieds#
| Bazaar | Comcat | |
|---|---|---|
| Price | yes | no |
| Sold | yes | no |
| Followers | yes | no |
The missing price is deliberate
A company is not for sale. Listing prices sit on the category.
A profile has no fixed fields#
Name, company number, address and opening hours are parameters
Find out from category-parameter-rel what the trade requires. Without it you
send an empty profile.
Opening hours#
A dedicated parameter type with its own value structure.
Saving a profile replaces the whole parameter set
Omit the opening hours and they disappear — with nothing reported. When editing, send the complete set.
Visibility#
A profile is active only when approved, paid for, and not banned, deleted or deactivated. The active flag cannot be written.