1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-03 13:10:04 +00:00

fix(studio): web component updated

This commit is contained in:
Saad Jutt
2021-12-28 22:02:11 +05:00
parent e6e5a5fd64
commit 2d77222ae8
3 changed files with 112 additions and 87 deletions

View File

@@ -92,6 +92,16 @@ components:
- clientSecret
type: object
additionalProperties: false
ExecuteSASCodePayload:
properties:
code:
type: string
description: 'Code of SAS program'
example: '* SAS Code HERE;'
required:
- code
type: object
additionalProperties: false
MemberType.folder:
enum:
- folder
@@ -358,16 +368,6 @@ components:
- description
type: object
additionalProperties: false
RunSASPayload:
properties:
code:
type: string
description: 'Code of SAS program'
example: '* SAS Code HERE;'
required:
- code
type: object
additionalProperties: false
ExecuteReturnJsonResponse:
properties:
status:
@@ -511,6 +511,30 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ClientPayload'
/SASjsApi/code/execute:
post:
operationId: ExecuteSASCode
responses:
'200':
description: Ok
content:
application/json:
schema:
type: string
description: 'Execute SAS code.'
summary: 'Run SAS Code and returns log'
tags:
- CODE
security:
-
bearerAuth: []
parameters: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ExecuteSASCodePayload'
/SASjsApi/drive/deploy:
post:
operationId: Deploy
@@ -982,30 +1006,6 @@ paths:
format: double
type: number
example: '6789'
/SASjsApi/run/code:
post:
operationId: RunSAS
responses:
'200':
description: Ok
content:
application/json:
schema:
type: string
description: 'Trigger a SAS program.'
summary: 'Run SAS Program, return raw content'
tags:
- RUN
security:
-
bearerAuth: []
parameters: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RunSASPayload'
/SASjsApi/session:
get:
operationId: Session
@@ -1107,5 +1107,5 @@ tags:
name: STP
description: 'Operations about STP'
-
name: RUN
description: 'Execute SAS code'
name: CODE
description: 'Operations on SAS code'

View File

@@ -6,7 +6,7 @@ const runRouter = express.Router()
const controller = new CodeController()
runRouter.post('/code', async (req, res) => {
runRouter.post('/execute', async (req, res) => {
const { error, value: body } = runSASValidation(req.body)
if (error) return res.status(400).send(error.details[0].message)