Skip to content

Commit

Permalink
new category python-scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
christophdb committed Nov 28, 2023
1 parent 00c7f67 commit 99ea7b6
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/rdme-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,9 @@ jobs:
uses: readmeio/rdme@v8
with:
rdme: openapi ping_and_info.yaml --key=${{ secrets.README_API_KEY }} --id=65489cddc89ba30035c0d626 --useSpecVersion

# Python-Scheduler
- name: Update ping & info 🚀
uses: readmeio/rdme@v8
with:
rdme: openapi python-pipeline.yaml --key=${{ secrets.README_API_KEY }} --id=6565ca0f4efdd30012d5caa5 --useSpecVersion
90 changes: 90 additions & 0 deletions python-pipeline.yaml
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]

0 comments on commit 99ea7b6

Please sign in to comment.