2024-08-08 12:00:49: merge [master:958e40c1b5f280b681f8c9bf09c476b347ea7b7e];
This commit is contained in:
1 parent
bdbb3216ce
commit
d8a0db34ef
25 files changed
+1752
-1
No files matched your search
@@ -0,0 +1,165 @@
|
||||
basePath: /api/script
|
||||
definitions:
|
||||
domain.BatchExecuteByIdsRequest:
|
||||
properties:
|
||||
arg:
|
||||
type: object
|
||||
ids:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- ids
|
||||
type: object
|
||||
domain.Error:
|
||||
properties:
|
||||
description:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
||||
type: object
|
||||
domain.ExecuteByIdRequest:
|
||||
properties:
|
||||
arg:
|
||||
type: object
|
||||
id:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
type: object
|
||||
domain.ExecuteRequest:
|
||||
properties:
|
||||
arg:
|
||||
type: object
|
||||
script:
|
||||
type: string
|
||||
required:
|
||||
- script
|
||||
type: object
|
||||
domain.GrpcError:
|
||||
properties:
|
||||
details:
|
||||
items:
|
||||
type: object
|
||||
type: array
|
||||
errorCode:
|
||||
type: string
|
||||
errorMessage:
|
||||
type: string
|
||||
type: object
|
||||
domain.ScriptResp:
|
||||
properties:
|
||||
error:
|
||||
$ref: '#/definitions/domain.Error'
|
||||
result:
|
||||
type: object
|
||||
type: object
|
||||
host: localhost:9000
|
||||
info:
|
||||
contact: {}
|
||||
description: Сервис для обработки и выполнения JavaScript скриптов
|
||||
license:
|
||||
name: GNU GPL v3.0
|
||||
title: isp-script-service
|
||||
version: 1.0.0
|
||||
paths:
|
||||
/script/batch_execute:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Возвращает результат выполнения скриптов и ошибок (если есть)
|
||||
parameters:
|
||||
- description: Набор идентификаторов и аргументов
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/domain.ExecuteByIdRequest'
|
||||
type: array
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/domain.ScriptResp'
|
||||
type: array
|
||||
summary: Выполнить набор скриптов под конкретными ID
|
||||
tags:
|
||||
- script
|
||||
/script/batch_execute_by_ids:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Возвращает результат выполнения скриптов и ошибок (если есть)
|
||||
parameters:
|
||||
- description: Набор идентификаторов и единый аргумент
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/domain.BatchExecuteByIdsRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/domain.ScriptResp'
|
||||
type: array
|
||||
summary: Выполнить набор скриптов под конкретными ID с идентичным аргументом
|
||||
для всех
|
||||
tags:
|
||||
- script
|
||||
/script/execute:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Возвращает результат выполнения скрипта и ошибку (если есть)
|
||||
parameters:
|
||||
- description: Скрипт необходимый к выполнению
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/domain.ExecuteRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/domain.ScriptResp'
|
||||
summary: Выполнить скрипт без учёта идентификатора
|
||||
tags:
|
||||
- script
|
||||
/script/execute_by_id:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Возвращает результат выполнения скрипта и ошибку (если есть)
|
||||
parameters:
|
||||
- description: идентификатор скрипта
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/domain.ExecuteByIdRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/domain.ScriptResp'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/domain.GrpcError'
|
||||
summary: Выполнить скрипт под конкретным ID
|
||||
tags:
|
||||
- script
|
||||
swagger: "2.0"
|
||||
Reference in new issue
Block a user