-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00c7f67
commit 99ea7b6
Showing
2 changed files
with
96 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
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,90 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Python Pipeline | ||
description: >- | ||
The official SeaTable API Reference (OpenAPI 3.0). | ||
version: "4.2" | ||
servers: | ||
- url: "https://{server}" | ||
variables: | ||
server: | ||
default: cloud.seatable.io | ||
|
||
x-readme: | ||
explorer-enabled: true | ||
metrics-enabled: false | ||
proxy-enabled: false | ||
|
||
components: | ||
securitySchemes: | ||
PythonSchedulerAuth: | ||
type: http | ||
scheme: bearer | ||
description: This is the [Python-Scheduler-Token](/reference/authentication). | ||
|
||
parameters: | ||
month: | ||
name: month | ||
in: query | ||
schema: | ||
type: integer | ||
pattern: ^[0-9]{4}-((0[1-9])|1[0-2])$ | ||
description: >- | ||
For which month you'd like to list the statistics in the format of | ||
YYYY-MM. | ||
example: "2023-06" | ||
required: false | ||
order_by: | ||
name: order_by | ||
in: query | ||
schema: | ||
type: string | ||
enum: ["total_run_count", "total_run_time"] | ||
default: "" | ||
required: true | ||
description: The ... | ||
example: "total_run_count" | ||
page: | ||
name: page | ||
description: The page number you want to start showing the entries. If no value is provided, 1 will be used. | ||
in: query | ||
schema: | ||
type: integer | ||
minimum: 1 | ||
example: 1 | ||
required: false | ||
per_page: | ||
name: per_page | ||
in: query | ||
schema: | ||
type: integer | ||
minimum: 1 | ||
description: The number of results that should be returned. If no value is provided, 25 results will be returned. | ||
example: 25 | ||
required: false | ||
|
||
paths: | ||
/admin/statistics/scripts-running/by-user/: | ||
get: | ||
tags: | ||
- Statistics | ||
summary: Script runs by user | ||
security: | ||
- Python-Scheduler-Token: [] | ||
parameters: | ||
- $ref: "#/components/parameters/month" | ||
- $ref: "#/components/parameters/order_by" | ||
- $ref: "#/components/parameters/page" | ||
- $ref: "#/components/parameters/per_page" | ||
responses: | ||
"200": | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
example: | ||
data: | ||
- email: [email protected] | ||
name: admin | ||
contact_email: [email protected] |