refactor: wire remaining request actions

This commit is contained in:
liyasthomas
2021-07-25 11:15:53 +05:30
parent 4508e309c2
commit 56c2e1094d
10 changed files with 122 additions and 103 deletions

View File

@@ -23,6 +23,7 @@ export type HoppRESTReqBody = {
export interface HoppRESTRequest {
v: string
name: string
method: string
endpoint: string
params: HoppRESTParam[]
@@ -80,6 +81,7 @@ export function translateToNewRequest(x: any): HoppRESTRequest {
})
)
const name = x.name
const method = x.method
const preRequestScript = x.preRequestScript
@@ -88,6 +90,7 @@ export function translateToNewRequest(x: any): HoppRESTRequest {
const body = parseRequestBody(x)
const result: HoppRESTRequest = {
name,
endpoint,
headers,
params,