-
Notifications
You must be signed in to change notification settings - Fork 0
/
appState.json
86 lines (86 loc) · 11.9 KB
/
appState.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"EDITOR_STATE": {
"allProjectFiles": {
"3c4fd048-89f0-472f-aebd-c44eb1521f5f": {
"id": "3c4fd048-89f0-472f-aebd-c44eb1521f5f",
"parent": null,
"name": "APIXDemo",
"type": "DIRECTORY",
"isDirectory": true,
"children": [
"b3b507b5-2177-46fc-9269-ea6d1290938d"
],
"isRemovable": false,
"filePath": "APIXDemo"
},
"b3b507b5-2177-46fc-9269-ea6d1290938d": {
"id": "b3b507b5-2177-46fc-9269-ea6d1290938d",
"parent": "3c4fd048-89f0-472f-aebd-c44eb1521f5f",
"name": "lambda.js",
"type": "LAMBDA_FILE",
"isDirectory": false,
"children": [],
"isRemovable": true,
"filePath": "APIXDemo/lambda.js",
"code": "\nlet Swagger = require('swagger-client');\n\nexports.handler = function (event, context, callback) {\n\n Swagger.http({\n url: 'https://services.apixplatform.com/api-sandbox/application/token',\n method: 'post',\n query: {},\n headers: { \"Accept\": \"*/*\", \"Content-Type\": \"application/json\" },\n body: JSON.stringify({\n \"userName\": \"modelbankuser@inboxbear.com\",\n \"password\": \"1qaz2wsx@\"\n })\n }).then((response) => {\n var access_token = \"bearer \" + response.body.access_token;\n // Insert new API calls here to call with APIX Access Token\n Swagger.http({\n url: `https://api.apixplatform.com/sbaccount/1.0/AccountService/accounts/accounts`,\n method: 'get',\n query: { \"page\": \"1\", \"size\": \"5\" },\n headers: { \"X-Authorization\": \"bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJVd3J6cXNjODUtSWVpRVkzdG55Y2lXOEVpN0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QiLCJncm91cE9yZ2FuaXphdGlvbklkIjpbIi9hZG1pbiIsIi92aXJ0dXNhLmNvbSJdLCJuYW1lIjoiVGFydW4gSmFpbiIsImZhbWlseV9uYW1lIjoiSmFpbiIsImVtYWlsIjoidGphaW5AdmlydHVzYS5jb20ifQ.EmtpmKfA1PvIFvpgV2QZdo1TaITxuqtidGtWfuNTM8NNykaxFYhHJr13-7V_4cOwjpEHOee3-TMnxOkRGPzeQlermUotAkBT48XQAisJj3xVSMSOGlE1p-O-tzmHyrmypEUJFhbYldgmrX0uwteKvJH_OACZi85MGyOdqujVIbeGifmsl6DXKB3FLpiuSiBLMfS6x2cxzFlYl4CDSUeDAZF_0rkrzlArpWtd_7kNAs00Q6I--FXH4C_3JVWaAxBJnXU0CnxPuXCd2NxVDjTbZE6Km02q4Nakm9aPYjSMzsSNbm3KiMWFIQ0txWgfwdZ5OLhza3mm0YIYYWogMsybOw\", \"Accept\": \"*/*\" }\n }).then((response) => {\n // your code goes here\n }).catch((err) => {\n // error handling goes here\n });\n Swagger.http({\n url: `https://api.apixplatform.com/sbaccount/1.0/AccountService/accounts/accounts`,\n method: 'get',\n query: { \"page\": \"10\", \"size\": \"10\" },\n headers: { \"X-Authorization\": \"bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJVd3J6cXNjODUtSWVpRVkzdG55Y2lXOEVpN0NteDBHX2hYQm5Nb2xaYjhJIn0.eyJqdGkiOiIwN2JjOTg2Ny1mNGM3LTRiZTMtYTFlMC02YzQ2MjgyZDhjMTAiLCJleHAiOjE1NDg2MDQzOTYsIm5iZiI6MCwiaWF0IjoxNTQ4NjAyNTk2LCJpc3MiOiJodHRwczovL3Nzby5hcGl4cGxhdGZvcm0uY29tL2F1dGgvcmVhbG1zL0FGSU4tUmVhbG0iLCJhdWQiOiJhcGktc2FuZGJveC1taWNyb3NlcnZpY2UiLCJzdWIiOiJiNGZmYTUyYi05OGY2LTQ5YjUtYjAzNC1iNDRmY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pbmJveGJlYXIuY29tIiwiZ2l2ZW5fbmFtZSI6IlJhdmVlbiIsInBlcnNvblBhcnR5SWQiOiIxOTg4Iiwib3JnYW5pemF0aW9uVHlwZSI6WyIvaW5ib3hiZWFyLmNvbSJdLCJwZXJzb25Pcmdhbml6YXRpb25JZCI6IjE5ODkiLCJncm91cE9yZ2FuaXphdGlvbklkIjpbIi9pbmJveGJlYXIuY29tIl0sIm5hbWUiOiJSYXZlZW4gd2lqZXRpbGxla2UiLCJmYW1pbHlfbmFtZSI6IndpamV0aWxsZWtlIiwiZW1haWwiOiJtb2RlbGJhbmt1c2VyQGluYm94YmVhci5jb20ifQ.dQ3tV5K-5aM872npAF3S4k2l8W0szDqfGfNnuQhSgcd_OljK-sfFojDVaPb2tlRyyNBAXOgHzvAqhcxLoJ1bxH6-T5mJgoUV5-hy9WFnAy1dh2u8CTiLTHd5fxhO8cyO0OscSynDFZN1M0ZJcnpnpfQduxQJmfuUxbihCmg_f_OdF0xVy7wUOc1uF2GGcTAfrnqr0fqNrDaI4_gxbz-yWElssWAaL8JWGiIFcHee13I01MiohE9QPJ_ZN_3XLiW_mP-Ung4QYTIqTSLXgu9bvYN8GSzs4AuWtwS9jnez-4c5CGlgqSgMntMzKc4HjTCHLGgCa14ow2caJ6KKtD6evQ\", \"Accept\": \"*/*\" }\n }).then((response) => {\n // your code goes here\n }).catch((err) => {\n // error handling goes here\n });\n\n\n callback(null, access_token);\n }).catch((err) => {\n console.log(err);\n callback(\"Execution failed\");\n });\n\n}",
"triggers": [],
"config": {
"runtime": "nodejs8.10",
"timeout": 60,
"memory": 128
},
"testCases": {
"53dc1cc6-9299-4998-907c-8c2631d79f2e": {
"id": "53dc1cc6-9299-4998-907c-8c2631d79f2e",
"name": "Unnamed event",
"functionId": "b3b507b5-2177-46fc-9269-ea6d1290938d",
"event": "{\n \"key1\": \"value1\",\n \"key2\": \"value2\",\n \"key3\": \"value3\"\n}"
}
}
}
},
"deletedFiles": [],
"rootNode": "3c4fd048-89f0-472f-aebd-c44eb1521f5f",
"openFiles": [
"b3b507b5-2177-46fc-9269-ea6d1290938d"
],
"currentFileId": "b3b507b5-2177-46fc-9269-ea6d1290938d",
"resources": {},
"envVariables": [
{
"lambdaId": "all",
"varKey": "SIGMA_AWS_ACC_ID",
"varValue": null,
"shouldPersist": false,
"displayOnly": false,
"editable": false
}
],
"packageJSON": {
"dependencies": {
"swagger-client": {
"name": "swagger-client",
"version": "3.8.21",
"notRemovable": false
}
}
},
"lambdaId": "b3b507b5-2177-46fc-9269-ea6d1290938d"
},
"PROJECT_META": {
"projectName": "APIXDemo",
"projectDescription": "APIXDemo",
"projectVersion": "1.0.0",
"projectRegion": "ap-southeast-1",
"platform": "AWS",
"platformRegions": {},
"lastSave": 1548603103640
},
"VCS_STATE": {
"provider": "GitHub",
"repo": {
"name": "APIXDemo",
"url": "https://github.com/tarunkjain/APIXDemo"
}
}
}