├── README.md └── server └── server.json /README.md: -------------------------------------------------------------------------------- 1 | "# AngularIonicExample" 2 | -------------------------------------------------------------------------------- /server/server.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "mockoon_export", 3 | "appVersion": "1.5.0", 4 | "checksum": "654dec444c3519c0382ca415b51af227", 5 | "subject": "full", 6 | "data": [ 7 | { 8 | "uuid": "15f24ac0-eaa3-11e9-81e9-872cef10359a", 9 | "name": "New environment", 10 | "endpointPrefix": "v1", 11 | "latency": 0, 12 | "port": 3000, 13 | "routes": [ 14 | { 15 | "uuid": "15f24ac1-eaa3-11e9-81e9-872cef10359a", 16 | "documentation": "", 17 | "method": "get", 18 | "endpoint": "products", 19 | "responses": [ 20 | { 21 | "uuid": "15f24ac2-eaa3-11e9-81e9-872cef10359a", 22 | "body": "[ \r\n { \r\n \"id\":\"1c0487fd-1e33-47ec-9541-f8de43d8abfe\",\r\n \"title\":\"GPS Automotivo Garmin Drive 51\",\r\n \"brand\":\"Garmin\",\r\n \"tag\":\"gps-automotivo-garmin-drive-51\",\r\n \"price\":809.1,\r\n \"image\":\"https://baltademos.blob.core.windows.net/eshop/gps-automotivo-garmin-drive-51.jpg\"\r\n },\r\n { \r\n \"id\":\"f58448de-bb53-48fa-8347-70bad73f1ec4\",\r\n \"title\":\"Notebook Samsung Essentials E30\",\r\n \"brand\":\"Samsung\",\r\n \"tag\":\"notebook-samsung-essentials-e30\",\r\n \"price\":1709.99,\r\n \"image\":\"https://baltademos.blob.core.windows.net/eshop/notebook-samsung-essentials-e30.jpg\"\r\n },\r\n { \r\n \"id\":\"0f8e8418-f3a3-4329-91c6-4548dc6af16b\",\r\n \"title\":\"Smartphone Apple iPhone Xr 128GB\",\r\n \"brand\":\"Apple\",\r\n \"tag\":\"smartphone-apple-iphone-xr-128gb\",\r\n \"price\":4949.1,\r\n \"image\":\"https://baltademos.blob.core.windows.net/eshop/smartphone-apple-iphone-xr-128gb.jpg\"\r\n },\r\n { \r\n \"id\":\"9a0dc81e-0b76-427f-8f9e-7502c2bd1005\",\r\n \"title\":\"Smartphone Motorola One 64GB\",\r\n \"brand\":\"Motorola\",\r\n \"tag\":\"smartphone-motorola-one-64gb\",\r\n \"price\":999.0,\r\n \"image\":\"https://baltademos.blob.core.windows.net/eshop/smartphone-motorola-one-64gb.jpg\"\r\n },\r\n { \r\n \"id\":\"58b3f5b6-55e8-4aa4-a352-a2e061b8aa6d\",\r\n \"title\":\"Smartphone Samsung Galaxy M20 64GB\",\r\n \"brand\":\"Samsung\",\r\n \"tag\":\"smartphone-samsung-galaxy-m20-64gb\",\r\n \"price\":1079.0,\r\n \"image\":\"https://baltademos.blob.core.windows.net/eshop/smartphone-samsung-galaxy-m20-64gb.jpg\"\r\n }\r\n]", 23 | "latency": 1500, 24 | "statusCode": "200", 25 | "headers": [ 26 | { 27 | "key": "", 28 | "value": "" 29 | } 30 | ], 31 | "filePath": "", 32 | "sendFileAsBody": false, 33 | "rules": [] 34 | } 35 | ] 36 | }, 37 | { 38 | "uuid": "d43cd760-ec1b-11e9-8962-bf1bdde80c2b", 39 | "documentation": "", 40 | "method": "post", 41 | "endpoint": "login", 42 | "responses": [ 43 | { 44 | "uuid": "d43cd761-ec1b-11e9-8962-bf1bdde80c2b", 45 | "body": "{\n \"username\":\"batman\",\n \"name\":\"Bruce Wayne\",\n \"image\":\"https://baltademos.blob.core.windows.net/eshop/batman.png\",\n \"email\":\"batman@balta.io\",\n \"token\":\"aHR0cHM6Ly9iYWx0YWRlbW9zLmJsb2IuY29yZS53aW5kb3dzLm5ldC9lc2hvcC9iYXRtYW4ucG5n\",\n \"roles\":[\"employee\", \"manager\"]\n}", 46 | "latency": 1200, 47 | "statusCode": "200", 48 | "headers": [ 49 | { 50 | "key": "", 51 | "value": "" 52 | } 53 | ], 54 | "filePath": "", 55 | "sendFileAsBody": false, 56 | "rules": [] 57 | } 58 | ] 59 | }, 60 | { 61 | "uuid": "02e40c50-ec1c-11e9-8962-bf1bdde80c2b", 62 | "documentation": "", 63 | "method": "get", 64 | "endpoint": "report/ms", 65 | "responses": [ 66 | { 67 | "uuid": "02e40c51-ec1c-11e9-8962-bf1bdde80c2b", 68 | "body": "{\r\n \"labels\": [\"Janeiro\", \"Fevereiro\", \"Março\", \"Abril\", \"Maio\", \"Junho\"],\r\n \"datasets\": [{\r\n \"label\": \"# de vendas\",\r\n \"data\": [7,9,12,24,8,5],\r\n \"backgroundColor\": [\r\n \"rgba(255, 99, 132, 0.2)\",\r\n \"rgba(54, 162, 235, 0.2)\",\r\n \"rgba(255, 206, 86, 0.2)\",\r\n \"rgba(75, 192, 192, 0.2)\",\r\n \"rgba(153, 102, 255, 0.2)\",\r\n \"rgba(255, 159, 64, 0.2)\"\r\n ],\r\n \"borderColor\": [\r\n \"rgba(255, 99, 132, 1)\",\r\n \"rgba(54, 162, 235, 1)\",\r\n \"rgba(255, 206, 86, 1)\",\r\n \"rgba(75, 192, 192, 1)\",\r\n \"rgba(153, 102, 255, 1)\",\r\n \"rgba(255, 159, 64, 1)\"\r\n ],\r\n \"borderWidth\": 1\r\n }]\r\n}", 69 | "latency": 1500, 70 | "statusCode": "200", 71 | "headers": [ 72 | { 73 | "key": "", 74 | "value": "" 75 | } 76 | ], 77 | "filePath": "", 78 | "sendFileAsBody": false, 79 | "rules": [] 80 | } 81 | ] 82 | }, 83 | { 84 | "uuid": "75616f70-ec1c-11e9-8962-bf1bdde80c2b", 85 | "documentation": "", 86 | "method": "get", 87 | "endpoint": "orders", 88 | "responses": [ 89 | { 90 | "uuid": "75616f71-ec1c-11e9-8962-bf1bdde80c2b", 91 | "body": "[\n {\n \"number\":\"8CV56R74\",\n \"date\":\"2019-07-18T17:49:00.000+0000\",\n \"status\":\"waiting_payment\",\n \"total\":23999,\n \"customer\": {\n \"name\":\"Bruce Wayne\"\n }\n },\n {\n \"number\":\"2795EF65\",\n \"date\":\"2019-07-18T18:12:00.000+0000\",\n \"status\":\"confirmed\",\n \"total\":7884,\n \"customer\": {\n \"name\":\"Peter Parker\"\n }\n }\n]", 92 | "latency": 1500, 93 | "statusCode": "200", 94 | "headers": [ 95 | { 96 | "key": "", 97 | "value": "" 98 | } 99 | ], 100 | "filePath": "", 101 | "sendFileAsBody": false, 102 | "rules": [] 103 | } 104 | ] 105 | }, 106 | { 107 | "uuid": "0bd4c150-ec1d-11e9-8962-bf1bdde80c2b", 108 | "documentation": "", 109 | "method": "get", 110 | "endpoint": "orders/8CV56R74", 111 | "responses": [ 112 | { 113 | "uuid": "0bd4c151-ec1d-11e9-8962-bf1bdde80c2b", 114 | "body": "{\n \"number\": \"8CV56R74\",\n \"date\": \"2019-07-18T17:49:00.000+0000\",\n \"status\": \"waiting_payment\",\n \"total\": 23999,\n \"discount\": 990,\n \"deliveryFee\": 990,\n \"customer\": {\n \"name\":\"Bruce Wayne\"\n },\n \"items\": [\n {\n \"code\": \"C5BFAAF9\",\n \"title\": \"Ração Canil 30KG\",\n \"price\": 20000\n },\n {\n \"code\": \"AFA21D81\",\n \"title\": \"Coleira Cachorro Petz\",\n \"price\": 3990\n }\n ]\n}", 115 | "latency": 1300, 116 | "statusCode": "200", 117 | "headers": [ 118 | { 119 | "key": "", 120 | "value": "" 121 | } 122 | ], 123 | "filePath": "", 124 | "sendFileAsBody": false, 125 | "rules": [] 126 | } 127 | ] 128 | } 129 | ], 130 | "proxyMode": false, 131 | "proxyHost": "", 132 | "https": false, 133 | "cors": true, 134 | "headers": [ 135 | { 136 | "key": "Content-Type", 137 | "value": "application/json" 138 | }, 139 | { 140 | "key": "Access-Control-Allow-Origin", 141 | "value": "*" 142 | }, 143 | { 144 | "key": "Access-Control-Allow-Headers", 145 | "value": "Origin, X-Requested-With, Content-Type, Accept, x-access-token\"" 146 | }, 147 | { 148 | "key": "Access-Control-Allow-Methods", 149 | "value": "GET, POST, PUT, DELETE, OPTIONS" 150 | } 151 | ] 152 | } 153 | ] 154 | } --------------------------------------------------------------------------------