22 lines
457 B
TypeScript
22 lines
457 B
TypeScript
import { HoppRESTRequest, RESTReqSchemaVersion } from "@hoppscotch/data"
|
|
|
|
export const getDefaultRESTRequest = (): HoppRESTRequest => ({
|
|
v: RESTReqSchemaVersion,
|
|
endpoint: "https://echo.hoppscotch.io",
|
|
name: "Untitled",
|
|
params: [],
|
|
headers: [],
|
|
method: "GET",
|
|
auth: {
|
|
authType: "inherit",
|
|
authActive: true,
|
|
},
|
|
preRequestScript: "",
|
|
testScript: "",
|
|
body: {
|
|
contentType: null,
|
|
body: null,
|
|
},
|
|
requestVariables: [],
|
|
})
|