api-client/store/state.js

52 lines
988 B
JavaScript
Raw Normal View History

2019-11-02 19:50:40 +00:00
export default () => ({
2019-10-24 23:28:08 +00:00
request: {
name: "Untitled request",
method: "GET",
2020-02-26 03:36:14 +00:00
uri: "",
url: "https://httpbin.org",
path: "/get",
auth: "None",
httpUser: "",
httpPassword: "",
passwordFieldType: "password",
bearerToken: "",
2019-10-24 23:28:08 +00:00
headers: [],
params: [],
bodyParams: [],
rawParams: "",
2019-10-24 23:28:08 +00:00
rawInput: false,
2021-05-04 02:14:26 +00:00
requestType: "curl",
contentType: "application/json",
2019-11-21 05:00:15 +00:00
},
gql: {
url: "https://rickandmortyapi.com/graphql",
2019-11-26 20:43:06 +00:00
headers: [],
schema: "",
2020-02-29 16:42:12 +00:00
variablesJSONString: '{ "id": "1" }',
2020-09-21 05:50:42 +00:00
query: `query GetCharacter($id: ID!) {
2020-02-29 16:51:38 +00:00
character(id: $id) {
2020-02-29 16:42:12 +00:00
id
name
}
}`,
response: "",
schemaIntrospection: "",
},
theme: {
collapsedSections: [],
2020-01-06 05:51:47 +00:00
},
oauth2: {
2020-01-06 09:17:50 +00:00
tokens: [],
2020-01-07 09:46:16 +00:00
tokenReqs: [],
tokenReqSelect: "",
tokenReqName: "",
accessTokenName: "",
oidcDiscoveryUrl: "",
authUrl: "",
accessTokenUrl: "",
clientId: "",
scope: "",
2020-02-24 18:44:50 +00:00
},
2020-08-13 11:20:02 +00:00
name: "Hoppscotch",
2020-02-24 18:44:50 +00:00
})