Files
hoppscotch/store/state.js
Dmitry Yankowski 21c6c07b39 Save GraphQL schema and response in state
Allows the user to go to the settings page, and back to the GraphQL page, without having to re-request the schema or response.
2020-02-24 16:12:02 -05:00

40 lines
758 B
JavaScript

export default () => ({
request: {
method: 'GET',
url: 'https://httpbin.org',
path: '/get',
label: '',
auth: 'None',
httpUser: '',
httpPassword: '',
passwordFieldType: 'password',
bearerToken: '',
headers: [],
params: [],
bodyParams: [],
rawParams: '',
rawInput: false,
requestType: '',
contentType: '',
},
gql: {
url: 'https://rickandmortyapi.com/graphql',
headers: [],
schema: '',
variablesJSONString: '{}',
query: '',
response: ''
},
oauth2: {
tokens: [],
tokenReqs: [],
tokenReqSelect: '',
tokenReqName: '',
accessTokenName: '',
oidcDiscoveryUrl: '',
authUrl: '',
accessTokenUrl: '',
clientId: '',
scope: '',
},
})