{ "opencollection": "1.0.0", "info": { "name": "Admin Account / Address Promotion Actions API", "version": "v3" }, "items": [ { "info": { "name": "Promotion Actions", "type": "folder" }, "items": [ { "info": { "name": "Return a list of Promotion Actions", "type": "http" }, "http": { "method": "GET", "url": "http://{defaultHost}/api/v2/platform/promotion_actions", "params": [ { "name": "page", "value": "1", "type": "query" }, { "name": "per_page", "value": "50", "type": "query" }, { "name": "include", "value": "calculator", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" }, { "name": "filter[type_eq]", "value": "Spree::Promotion::Actions::CreateAdjustment", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns a list of Promotion Actions" }, { "info": { "name": "Create a Promotion Action", "type": "http" }, "http": { "method": "POST", "url": "http://{defaultHost}/api/v2/platform/promotion_actions", "params": [ { "name": "include", "value": "calculator", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Creates a Promotion Action" }, { "info": { "name": "Return a Promotion Action", "type": "http" }, "http": { "method": "GET", "url": "http://{defaultHost}/api/v2/platform/promotion_actions/:id", "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "include", "value": "calculator", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns a Promotion Action" }, { "info": { "name": "Update a Promotion Action", "type": "http" }, "http": { "method": "PATCH", "url": "http://{defaultHost}/api/v2/platform/promotion_actions/:id", "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "include", "value": "calculator", "type": "query", "description": "Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Updates a Promotion Action" }, { "info": { "name": "Delete a Promotion Action", "type": "http" }, "http": { "method": "DELETE", "url": "http://{defaultHost}/api/v2/platform/promotion_actions/:id", "params": [ { "name": "id", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Deletes a Promotion Action" } ] } ], "bundled": true }