Skip to content

Latest commit

 

History

History

README.md

Group Triggers

.triggers

Triggers are events that call the configured procedures, running automatic tasks

They are created automaticly after each modification operation (POST, PUT, PATCH and DELETE) at this API

Use the triggers resource to read and delete triggers in a merchant's store, you can also create fake triggers, mainly for tests purposes

Trigger Object [/triggers/schema.json]

:

JSON Schema [GET]

:

All Triggers [/triggers.json{?method,resource}]

/triggers.json?[field]

Authentication
GET: required

Pagination and ordering are not available, but you can use any other parameter, such as method and resource, to query by particular object properties

Returns all properties excepting body and response of each trigger

List All Store Triggers [GET /triggers.json]

:

Find Triggers [GET]

:

New Trigger [/triggers.json]

/triggers.json

Authentication
POST: required

Request body must obey the specifications of this model

All triggers created this way (not automatically) will be marked as fake, having the property fake equals to true

Create New Trigger [POST]

:

Specific Trigger [/triggers/{_id}.json]

/triggers/[_id].json

Authentication
GET, DELETE: required

In read requests, response body will follow this model, triggers created manually (forced) will be marked as fake, having the property fake equals to true

Read Trigger [GET]

:

Remove Trigger [DELETE]

: