Co-authored-by: Liyas Thomas <liyascthomas@gmail.com> Co-authored-by: Nivedin <53208152+nivedin@users.noreply.github.com> Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
21 lines
430 B
TypeScript
21 lines
430 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: "none",
|
|
authActive: true,
|
|
},
|
|
preRequestScript: "",
|
|
testScript: "",
|
|
body: {
|
|
contentType: null,
|
|
body: null,
|
|
},
|
|
})
|