meal_homework/LoadExampleData.postman_collection.json
Torma Kristóf b2934a43c0
Some checks failed
continuous-integration/drone/push Build is failing
better postman memes
2022-02-13 23:31:02 +01:00

107 lines
2.6 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",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});"
],
"type": "text/javascript"
}
}
],
"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",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});"
],
"type": "text/javascript"
}
}
],
"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": [
""
]
}
}
]
}