Skip to content

Commit

Permalink
update collection with api calls on updating joke versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tommasosansone91 committed Nov 9, 2024
1 parent 4322397 commit a3ea5e2
Showing 1 changed file with 96 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"sometimes Chuck Norris weeps, no wait it's the niagara falls\"\n}"
"raw": "{\n \"content\": \"swhen chuck norris get hop on his horse... well it's the horse hoppin on chuck norris\"\n}"
},
"url": {
"raw": "http://127.0.0.1:5000/api/jokes/",
Expand All @@ -465,7 +465,40 @@
"response": []
},
{
"name": "update joke new one",
"name": "add joke 2",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\"content\": \"whenever Chuck Norris weeps, no wait, it's the Oklahoma falls\"}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://127.0.0.1:5000/api/jokes/",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "5000",
"path": [
"api",
"jokes",
""
]
}
},
"response": []
},
{
"name": "update joke get error",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
Expand All @@ -482,10 +515,10 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"when chuck norris weeps, no, wait, it's the niagara falls\"\n}"
"raw": "{\n \"content\": \"chuck norris eat pop-corns... booom!!\"\n}"
},
"url": {
"raw": "http://127.0.0.1:5000/api/jokes/10",
"raw": "http://127.0.0.1:5000/api/jokes/13",
"protocol": "http",
"host": [
"127",
Expand All @@ -497,28 +530,76 @@
"path": [
"api",
"jokes",
"10"
"13"
]
}
},
"response": []
},
{
"name": "test post called",
"name": "update joke",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "POST",
"header": [],
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\"content\": \"whenever Chuck Norris weeps, no wait, it's the Oklahoma falls\"}",
"raw": "{\n \"content\": \"whenever Chuck Norris swept the floor, a tornado comes up!\"\n}"
},
"url": {
"raw": "http://127.0.0.1:5000/api/jokes/3",
"protocol": "http",
"host": [
"127",
"0",
"0",
"1"
],
"port": "5000",
"path": [
"api",
"jokes",
"3"
]
}
},
"response": []
},
{
"name": "retrieve -the just updated- joke given joke_id integer",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"target_apps\": [\"local\"]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://127.0.0.1:5000/api/jokes/",
"raw": "http://127.0.0.1:5000/api/jokes/4",
"protocol": "http",
"host": [
"127",
Expand All @@ -530,14 +611,14 @@
"path": [
"api",
"jokes",
""
"4"
]
}
},
"response": []
},
{
"name": "update joke",
"name": "update -just created- joke",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
Expand All @@ -554,10 +635,10 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"when chuck norris weeps, no, wait, it's the niagara falls\"\n}"
"raw": "{\n \"content\": \"When chuck norris get hop on his horse... well it's the horse that hops on chuck norris!! xD\"\n}"
},
"url": {
"raw": "http://127.0.0.1:5000/api/jokes/",
"raw": "http://127.0.0.1:5000/api/jokes/4",
"protocol": "http",
"host": [
"127",
Expand All @@ -569,7 +650,7 @@
"path": [
"api",
"jokes",
""
"4"
]
}
},
Expand Down

0 comments on commit a3ea5e2

Please sign in to comment.