add postman collections
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
00cacf77b7
commit
58a7ecc7d8
88
LoadExampleData.postman_collection.json
Normal file
88
LoadExampleData.postman_collection.json
Normal file
@ -0,0 +1,88 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
142
MealHomeWork.postman_collection.json
Normal file
142
MealHomeWork.postman_collection.json
Normal file
@ -0,0 +1,142 @@
|
||||
{
|
||||
"info": {
|
||||
"_postman_id": "55c48bb4-3ec9-4f48-877d-1450270b603d",
|
||||
"name": "MealHomeWork",
|
||||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
||||
},
|
||||
"item": [
|
||||
{
|
||||
"name": "Load a meal",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"name\": \"Paprikas krumpli\",\n \"description\": \"Mit csinaljak? Paprikas krumplit!\",\n \"kcal\": 400,\n \"price\": 1500,\n \"spicy\": true,\n \"vegan\": true,\n \"glutenfree\": true,\n \"ingredients\": [\n {\n \"name\": \"Paprika\"\n },\n {\n \"name\": \"Krumpli\"\n }\n ]\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{HOST}}/meals",
|
||||
"host": [
|
||||
"{{HOST}}"
|
||||
],
|
||||
"path": [
|
||||
"meals"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Update a meal",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"name\": \"Paprikas krumpli\",\n \"description\": \"Mit csinaljak? Krumplikas paprit!\",\n \"kcal\": 350,\n \"price\": 200,\n \"spicy\": false,\n \"vegan\": true,\n \"glutenfree\": true,\n \"ingredients\": [\n {\n \"name\": \"Papri\"\n },\n {\n \"name\": \"Krumplika\"\n }\n ]\n}",
|
||||
"options": {
|
||||
"raw": {
|
||||
"language": "json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"url": {
|
||||
"raw": "{{HOST}}/meals/2",
|
||||
"host": [
|
||||
"{{HOST}}"
|
||||
],
|
||||
"path": [
|
||||
"meals",
|
||||
"2"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Get all meals",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "{{HOST}}/meals",
|
||||
"host": [
|
||||
"{{HOST}}"
|
||||
],
|
||||
"path": [
|
||||
"meals"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Get a specific meal",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "{{HOST}}/meals/1",
|
||||
"host": [
|
||||
"{{HOST}}"
|
||||
],
|
||||
"path": [
|
||||
"meals",
|
||||
"1"
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Delete a specific meal",
|
||||
"request": {
|
||||
"method": "DELETE",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "{{HOST}}/meals/1",
|
||||
"host": [
|
||||
"{{HOST}}"
|
||||
],
|
||||
"path": [
|
||||
"meals",
|
||||
"1"
|
||||
]
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user