Bazaar β classifieds#
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 |
advert β owner, event |
advert-follower |
following |
advert-report |
reporting |
advert-statistics |
view statistics |
category |
category β tree, public |
parameter |
parameter β tree, public |
parameter-group |
parameter group |
parameter-rule |
display rule |
category-parameter-rel |
parameter targeting |
response |
reply to an advert β owner, event |
watchdog |
saved search β owner, event |
tariff |
tariff |
payment-item |
payment item |
π΄ An advert has no fixed fields#
Title, description and price are parameters, not columns
Writing an advert therefore does not send data[name] but parameter values.
Which parameters a category requires you learn from category-parameter-rel.
Reserved parameter keys: name, price, email, regionId.
Categories and parameters are trees#
Both. A select parameter's options are its children.
delete-node deletes the whole subtree
On a parameter, that includes all its options β and with them the values in every advert.
Advert visibility#
An advert is active only when it is approved, paid for, and not banned, deleted, deactivated or sold.
The active flag cannot be written
It is computed from those six. A write is rejected.
Expiry is not part of it
An expired advert stays formally active. Filter by the expiry date yourself.
Saved searches#
Require both a category and a region. They fire only when an advert is posted.
Price#
Prices in different currencies are not converted
Sorting by price mixes currencies. For comparable results, filter by currency.