Skip to content

Instantly share code, notes, and snippets.

@stacietaylorcima
Created October 28, 2019 03:50
Show Gist options
  • Save stacietaylorcima/8c00af43069e59bb6f7363a215ad3baa to your computer and use it in GitHub Desktop.
Save stacietaylorcima/8c00af43069e59bb6f7363a215ad3baa to your computer and use it in GitHub Desktop.
This is the state when samples have been selected inside an app.
{
hello: 'world',
loggedIn: true,
apiKey: '55d8c18ddd2e95585a264bdb157f53be',
fetchingApps: false,
apps: [
{
notes: '',
userData: [],
appData: '',
name: 'failchimp',
created: '2019-04-05T20:15:25.950Z',
updated: '2019-04-05T20:15:25.950Z'
}
],
selectedApp: {
notes: '',
userData: [],
appData: '',
name: 'failchimp',
created: '2019-04-05T20:15:25.950Z',
updated: '2019-04-05T20:15:25.950Z',
endpoints: [
{
handler: 'return res.status(200).json({msg:\'default handler\'})',
active: true,
_id: '5d9ea926f3e82d0004325a1e',
name: '1570679078199',
app: '5ca7b75d6914580004a2ad84',
method: 'GET',
created: '2019-10-10T03:44:38.366Z',
updated: '2019-10-10T03:44:38.366Z',
__v: 0
}
]
},
selectedEndpoint: '5ca7bc376914580004a2ad8e',
currentError: '',
userEmail: 'stacie@blah.com',
userRole: 'admin',
fetching: false,
selectedSamples: [
{
_id: '5ca7bcaa6914580004a2ad8f',
endpoint: '5ca7bc376914580004a2ad8e',
request: {
method: 'POST',
body: {
name: 'justin',
email: 'justin'
},
headers: {
host: 'blahblahblah.com',
connection: 'close',
'content-type': 'application/json',
accept: 'application/json',
'user-agent': 'Zapier',
'accept-encoding': 'gzip,deflate',
'x-request-id': 'sdlfkjdsalkjflaskd8',
'x-forwarded-for': '3.91.85.228',
'x-forwarded-proto': 'https',
'x-forwarded-port': '443',
via: '1.1 vegur',
'connect-time': '0',
'x-request-start': '1554496682385',
'total-route-time': '0',
'content-length': '34'
},
ip: '::blah:10.47.blah.balh',
secure: false
},
created: '2019-04-05T20:38:02.396Z',
updated: '2019-04-05T20:38:02.396Z',
__v: 0
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment