This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEVDOCS-4121: [net new] Store Logs API (#841)
Co-authored-by: Sarah Riehl <[email protected]> Co-authored-by: Constanze Kratel <[email protected]>
- Loading branch information
1 parent
5778a45
commit 1acda1d
Showing
2 changed files
with
223 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,218 @@ | ||
openapi: 3.0.0 | ||
x-stoplight: | ||
id: 984571274919c | ||
info: | ||
title: Store Logs V3 API | ||
version: '' | ||
description: This API can be used to retrieve and filter for specific store logs. | ||
servers: | ||
- url: 'https://api.bigcommerce.com' | ||
paths: | ||
'/stores/{store_hash}/v3/store/systemlogs': | ||
get: | ||
summary: Get System Logs | ||
description: 'Get system logs ' | ||
tags: | ||
- System Logs | ||
operationId: get-sites | ||
responses: | ||
'200': | ||
description: The request completed successfully. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
data: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/SystemLog' | ||
meta: | ||
$ref: '#/components/schemas/IndexMeta' | ||
parameters: | ||
- schema: | ||
type: string | ||
in: path | ||
required: true | ||
name: store_hash | ||
description: Path parameter that lets you specify a unique identifier for a store. | ||
- schema: | ||
type: integer | ||
default: 50 | ||
in: query | ||
name: limit | ||
description: Query parameter that lets you return the number of results displayed per page. | ||
- schema: | ||
type: integer | ||
default: 1 | ||
in: query | ||
name: page | ||
description: Query parameter that lets you specify the starting page in which results are returned. | ||
- schema: | ||
type: string | ||
enum: | ||
- general | ||
- payment | ||
- shipping | ||
- tax | ||
- notification | ||
- emailintegration | ||
- ordersettings | ||
- design | ||
in: query | ||
name: type | ||
description: Query parameter that lets you filter the results by log type. | ||
- schema: | ||
type: string | ||
in: query | ||
name: 'type:not' | ||
description: Query parameter that lets you exclude a log type from the results. | ||
- schema: | ||
type: string | ||
enum: | ||
- export+only | ||
- email+message | ||
- theme+download | ||
- order+status | ||
- optimized+checkout | ||
in: query | ||
name: module | ||
description: Query parameter that lets you filter the results by module. | ||
- schema: | ||
type: string | ||
in: query | ||
name: 'module:not' | ||
description: Query parameter that lets you exclude a log module from the results. | ||
- schema: | ||
type: integer | ||
enum: | ||
- 1 | ||
- 2 | ||
- 3 | ||
- 4 | ||
in: query | ||
name: severity | ||
description: 'Query parameter that lets you filter results by severity level, as an integer. The following values are possible: Success = 1, Notice = 2, Warning = 3, Error = 4' | ||
- schema: | ||
type: integer | ||
in: query | ||
name: 'severity:min' | ||
description: 'Query parameter that lets you filter by minimum severity, as an integer.' | ||
- schema: | ||
type: integer | ||
in: query | ||
name: 'severity:max' | ||
description: 'Query parameter that lets you filter by maximum severity, as an integer.' | ||
- schema: | ||
type: string | ||
in: query | ||
name: 'id:in' | ||
description: 'Query parameter that lets you filter by a list of log IDs, as a CSV. For example ?id:in=3,4,6' | ||
parameters: [] | ||
components: | ||
schemas: | ||
IndexMeta: | ||
type: object | ||
description: BigCommerce meta payload for collection-type responses. | ||
properties: | ||
pagination: | ||
type: object | ||
properties: | ||
total: | ||
type: integer | ||
example: 1 | ||
count: | ||
type: integer | ||
example: 1 | ||
per_page: | ||
type: integer | ||
example: 50 | ||
current_page: | ||
type: integer | ||
example: 1 | ||
total_pages: | ||
type: integer | ||
example: 1 | ||
links: | ||
type: object | ||
properties: | ||
previous: | ||
type: string | ||
example: '?page=1&limit=50' | ||
current: | ||
type: string | ||
example: '?page=1&limit=50' | ||
next: | ||
type: string | ||
example: '?page=1&limit=50' | ||
ErrorResponse: | ||
allOf: | ||
- $ref: '#/components/schemas/BaseError' | ||
- type: object | ||
properties: | ||
errors: | ||
$ref: '#/components/schemas/DetailedErrors' | ||
BaseError: | ||
type: object | ||
description: | | ||
Error payload for the BigCommerce API. | ||
properties: | ||
status: | ||
description: | | ||
The HTTP status code. | ||
type: integer | ||
title: | ||
description: | | ||
The title of the message describing the particular error. | ||
type: string | ||
type: | ||
type: string | ||
instance: | ||
type: string | ||
DetailedErrors: | ||
type: object | ||
additionalProperties: | ||
type: string | ||
SystemLog: | ||
title: SystemLog | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
type: | ||
type: string | ||
module: | ||
type: string | ||
severity: | ||
type: string | ||
summary: | ||
type: string | ||
message: | ||
type: string | ||
date_created: | ||
type: string | ||
format: date-time | ||
parameters: {} | ||
requestBodies: {} | ||
securitySchemes: | ||
X-Auth-Token: | ||
type: apiKey | ||
name: X-Auth-Token | ||
in: header | ||
description: |- | ||
### OAuth Scopes | ||
| UI Name | Permission | Parameter | | ||
| :-------|:-----------|:----------| | ||
| Store logs | read-only | store_logs_read_only | | ||
### Headers | ||
| Header | Parameter | Description | | ||
|:-------|:----------|:------------| | ||
| `X-Auth-Token` | `access_token` | Obtained by [creating an API account](/api-docs/getting-started/authentication/rest-api-authentication) or installing an app in a BigCommerce control panel. | | ||
For example requests and more information about authenticating BigCommerce APIs, see [Authentication and Example Requests](/api-docs/getting-started/authentication#x-auth-token-header-example-requests). | ||
tags: | ||
- name: System Logs | ||
security: | ||
- X-Auth-Token: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters