Listar scripts
GET {api_url}/store/scripts
Consultar scripts
GET {api_url}/store/scripts/{id}
Criar scripts
POST {api_url}/store/scripts
C/C++
{
"name": "string|min:2|max:255",
"description": "string|max:255|nullable",
"location": "in:footer,header",
"page": "store",
"category": "in:essential,analytics,functional,targeting",
"active": "boolean",
"load_method": "in:default,async,defer",
"url": "string|max:255|nullable",
"content": "nullable|string|null_if:url",
"position": "integer"
}
Editar scripts
PUT {api_url}/store/scripts/{id}
C/C++
{
"name": "string|min:2|max:255",
"description": "string|max:255|nullable",
"location": "in:footer,header",
"page": "store",
"category": "in:essential,analytics,functional,targeting",
"active": "boolean",
"load_method": "in:default,async,defer",
"url": "string|max:255|nullable",
"content": "nullable|string|null_if:url",
"position": "integer"
}
Deletar scripts
DELETE {api_url}/store/scripts/{id}
Filtros
Pode-se utilizar filtros para restringir o retorno de dados. São utilizados, passando um parâmetro na URL requisitada. Observe a tabela de possíveis filtros abaixo.
Param | Tipo | Ex |
limit | int | &limit=15 |
page | int | &page=1 |
sort | string | &sort=id ou &sort=-id |
Comentários
0 comentário
Por favor, entre para comentar.