1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00

chore(docs): updating swagger definitions

This commit is contained in:
munja
2022-09-21 11:08:12 +01:00
parent 5d6c6086b4
commit a810f6c7cf
3 changed files with 7 additions and 7 deletions

View File

@@ -660,8 +660,8 @@ paths:
anyOf:
- {type: string}
- {type: string, format: byte}
description: 'Execute SAS code.'
summary: 'Run SAS Code and returns log'
description: 'Execute Code on the Specified Runtime'
summary: 'Run Code and Return Webout Content and Log'
tags:
- Code
security:
@@ -1686,7 +1686,7 @@ paths:
- {type: string}
- {type: string, format: byte}
description: "Trigger a Stored Program using the _program URL parameter.\n\nAccepts URL parameters and file uploads. For more details, see docs:\n\nhttps://server.sasjs.io/storedprograms"
summary: 'Execute a Stored Program, return a JSON object'
summary: 'Execute a Stored Program, returns _webout and (optionally) log.'
tags:
- STP
security:

View File

@@ -27,8 +27,8 @@ interface ExecuteCodePayload {
@Tags('Code')
export class CodeController {
/**
* Execute SAS code.
* @summary Run SAS Code and returns log
* Execute Code on the Specified Runtime
* @summary Run Code and Return Webout Content and Log
*/
@Post('/execute')
public async executeCode(

View File

@@ -50,7 +50,7 @@ export class STPController {
* https://server.sasjs.io/storedprograms
*
*
* @summary Execute a Stored Program, return a JSON object
* @summary Execute a Stored Program, returns _webout and (optionally) log.
* @param _program Location of code in SASjs Drive
* @example _program "/Projects/myApp/some/program"
*/
@@ -92,7 +92,7 @@ const execute = async (
)
if (result instanceof Buffer) {
;(req as any).sasHeaders = httpHeaders
; (req as any).sasHeaders = httpHeaders
}
return result