88 lines
2.2 KiB
JSON
88 lines
2.2 KiB
JSON
|
{
|
||
|
"info": {
|
||
|
"_postman_id": "806dacf3-08f5-42ae-aec6-fbdd80e7b05e",
|
||
|
"name": "LoadExampleData",
|
||
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
||
|
},
|
||
|
"item": [
|
||
|
{
|
||
|
"name": "Load first meal",
|
||
|
"request": {
|
||
|
"method": "POST",
|
||
|
"header": [],
|
||
|
"body": {
|
||
|
"mode": "raw",
|
||
|
"raw": "{\n \"name\": \"Sajtburger\",\n \"description\": \"A Meki legjava\",\n \"kcal\": 1000,\n \"price\": 1000,\n \"spicy\": false,\n \"vegan\": false,\n \"glutenfree\": false,\n \"ingredients\": [\n {\n \"name\": \"Buci\"\n },\n {\n \"name\": \"Sajt\"\n },\n {\n \"name\": \"Kecsap\"\n },\n {\n \"name\": \"Hus\"\n },\n {\n \"name\": \"Uborka\"\n }\n ]\n}",
|
||
|
"options": {
|
||
|
"raw": {
|
||
|
"language": "json"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"url": {
|
||
|
"raw": "{{HOST}}/meals",
|
||
|
"host": [
|
||
|
"{{HOST}}"
|
||
|
],
|
||
|
"path": [
|
||
|
"meals"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"response": []
|
||
|
},
|
||
|
{
|
||
|
"name": "Load second meal",
|
||
|
"request": {
|
||
|
"method": "POST",
|
||
|
"header": [],
|
||
|
"body": {
|
||
|
"mode": "raw",
|
||
|
"raw": "{\n \"name\": \"Marhaporkolt nokedlivel\",\n \"description\": \"Ahogy a nagyszuleink csinaltak\",\n \"kcal\": 750,\n \"price\": 3000,\n \"spicy\": true,\n \"vegan\": false,\n \"glutenfree\": false,\n \"ingredients\": [\n {\n \"name\": \"Marhahus\"\n },\n {\n \"name\": \"Paprika\"\n },\n {\n \"name\": \"Nokedli\"\n }\n ]\n}",
|
||
|
"options": {
|
||
|
"raw": {
|
||
|
"language": "json"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"url": {
|
||
|
"raw": "{{HOST}}/meals",
|
||
|
"host": [
|
||
|
"{{HOST}}"
|
||
|
],
|
||
|
"path": [
|
||
|
"meals"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"response": []
|
||
|
}
|
||
|
],
|
||
|
"event": [
|
||
|
{
|
||
|
"listen": "prerequest",
|
||
|
"script": {
|
||
|
"type": "text/javascript",
|
||
|
"exec": [
|
||
|
""
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"listen": "test",
|
||
|
"script": {
|
||
|
"type": "text/javascript",
|
||
|
"exec": [
|
||
|
""
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"variable": [
|
||
|
{
|
||
|
"key": "HOST",
|
||
|
"value": "127.0.0.1:8080",
|
||
|
"type": "string"
|
||
|
}
|
||
|
]
|
||
|
}
|