Skip to content

Commit 40e6f93

Browse files
committed
added geoloc for search in postman
1 parent 994b8c2 commit 40e6f93

File tree

1 file changed

+67
-18
lines changed

1 file changed

+67
-18
lines changed

PyMatcha.postman_collection.json

Lines changed: 67 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5833,6 +5833,55 @@
58335833
{
58345834
"name": "Search",
58355835
"item": [
5836+
{
5837+
"name": "Add geoloc",
5838+
"event": [
5839+
{
5840+
"listen": "test",
5841+
"script": {
5842+
"id": "0b84dc46-a103-4d7c-b77a-3cdcc39108e6",
5843+
"exec": [
5844+
"var response = JSON.parse(responseBody);",
5845+
"",
5846+
"",
5847+
"pm.test(\"Status code is 200\", function () {",
5848+
" pm.response.to.have.status(200);",
5849+
"});",
5850+
"",
5851+
"",
5852+
"tests[\"success is true\"] = response.success == true",
5853+
"tests[\"Message is correct\"] = response.message == \"New location sucessfully saved.\""
5854+
],
5855+
"type": "text/javascript"
5856+
}
5857+
}
5858+
],
5859+
"request": {
5860+
"method": "PUT",
5861+
"header": [],
5862+
"body": {
5863+
"mode": "raw",
5864+
"raw": "{\n\t\"ip\": \"{{user_ip}}\",\n\t\"lat\": {{user_lat}},\n\t\"lng\": {{user_lng}}\n}",
5865+
"options": {
5866+
"raw": {
5867+
"language": "json"
5868+
}
5869+
}
5870+
},
5871+
"url": {
5872+
"raw": "{{host}}/profile/edit/geolocation",
5873+
"host": [
5874+
"{{host}}"
5875+
],
5876+
"path": [
5877+
"profile",
5878+
"edit",
5879+
"geolocation"
5880+
]
5881+
}
5882+
},
5883+
"response": []
5884+
},
58365885
{
58375886
"name": "Search no params",
58385887
"event": [
@@ -6619,92 +6668,92 @@
66196668
],
66206669
"variable": [
66216670
{
6622-
"id": "39435658-24b3-4dea-8409-43d427799e85",
6671+
"id": "330460a2-d36e-43e7-83de-ba6f3be1a9f9",
66236672
"key": "host",
66246673
"value": "http://127.0.0.1:5000"
66256674
},
66266675
{
6627-
"id": "30ed52ca-0534-4af5-bb41-d5651b0813ab",
6676+
"id": "f193749a-6542-4910-8e83-3d02f28fb1c8",
66286677
"key": "user_id",
66296678
"value": ""
66306679
},
66316680
{
6632-
"id": "1a0561b3-7a1c-4f17-b5e9-def3177a19fa",
6681+
"id": "f6b4abdf-1bb1-41ad-adb4-de2ef8dab807",
66336682
"key": "user_email",
66346683
"value": "foo@example.org"
66356684
},
66366685
{
6637-
"id": "35381065-16e0-400c-9b89-7c6d2a45545f",
6686+
"id": "f9ef5658-7366-4752-8ecf-7c03b88b6fba",
66386687
"key": "user_username",
66396688
"value": "foo"
66406689
},
66416690
{
6642-
"id": "8f8520cd-d830-4759-832a-3c7d6cc851e9",
6691+
"id": "2b79679d-59c3-4c04-a281-564a4a713007",
66436692
"key": "user_password",
66446693
"value": "admin"
66456694
},
66466695
{
6647-
"id": "5ab632fb-ed0a-49c1-b37d-99cc36b05c1e",
6696+
"id": "a04fe360-2c26-4e56-acf5-b40f8accab58",
66486697
"key": "user_firstname",
66496698
"value": "Foo"
66506699
},
66516700
{
6652-
"id": "83b37a4e-e63d-4038-802d-44b427fcc69e",
6701+
"id": "000323c9-cc69-4093-9417-d0c0c9bb9b35",
66536702
"key": "user_lastname",
66546703
"value": "Bar"
66556704
},
66566705
{
6657-
"id": "9ba04542-d7f3-47d3-9fde-87978b6eb656",
6706+
"id": "d828ec70-3e65-4188-93cc-041d5f74b94d",
66586707
"key": "debug_token",
66596708
"value": "xX69jules69Xx"
66606709
},
66616710
{
6662-
"id": "4e04c791-a558-4965-a627-a209c11c104b",
6711+
"id": "56424c7b-6523-4484-9abc-a1947a6a5050",
66636712
"key": "user_access_token",
66646713
"value": ""
66656714
},
66666715
{
6667-
"id": "988302f5-679d-4501-a24f-3eafbdfbd0f8",
6716+
"id": "868c85d8-9841-4e10-8202-05a492974fe4",
66686717
"key": "user_refresh_token",
66696718
"value": ""
66706719
},
66716720
{
6672-
"id": "a344fb26-9b08-4f1a-b3c9-f7a789cb91e5",
6721+
"id": "eaaa7e33-3bea-4004-8f5d-f64bc742e3c4",
66736722
"key": "expired_token",
66746723
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1OTAyNDIyNjQsIm5iZiI6MTU5MDI0MjI2NCwianRpIjoiNTM0ZGI5NzQtOWE4Ni00MGViLWE1NDEtMDg3N2ZmNzQ3NDVhIiwiZXhwIjoxNTkwMjQyMzI0LCJpZGVudGl0eSI6eyJpZCI6NTEyLCJlbWFpbCI6ImZvb0BleGFtcGxlLm9yZyIsInVzZXJuYW1lIjoiYmFyIiwiaXNfb25saW5lIjp0cnVlLCJkYXRlX2xhc3RzZWVuIjoiU2F0LCAyMyBNYXkgMjAyMCAxMzo1Nzo0NCBHTVQifSwiZnJlc2giOnRydWUsInR5cGUiOiJhY2Nlc3MifQ.NTp2P0WNkXDwzuzrcNIQdeAfizQ57HQgkzBLSvY1yHU"
66756724
},
66766725
{
6677-
"id": "c05cc5c1-cd7c-4372-826a-72c8b97cf633",
6726+
"id": "8cadf84f-41fb-4716-8341-3491577a68b6",
66786727
"key": "user_orientation",
66796728
"value": "heterosexual"
66806729
},
66816730
{
6682-
"id": "ae5f761b-5d2f-4132-bc5b-2779399ae3e8",
6731+
"id": "7ea612ef-c9c4-4461-9f02-4b9015f41220",
66836732
"key": "user_bio",
66846733
"value": "Lorem Ipsum is the single greatest threat. We are not - we are not keeping up with other websites. Lorem Ipsum best not make any more threats to your website. It will be met with fire and fury like the world has never seen. Does everybody know that pig named Lorem Ipsum? An ‘extremely credible source’ has called my office and told me that Barack Obama’s placeholder text is a fraud."
66856734
},
66866735
{
6687-
"id": "20599b82-c444-425d-862e-569a614340c3",
6736+
"id": "927b1143-1bdb-49e3-b550-aa61352e205d",
66886737
"key": "user_gender",
66896738
"value": "male"
66906739
},
66916740
{
6692-
"id": "3dd55563-04f1-4843-b6e4-f5f3283ce430",
6741+
"id": "78d05b3f-1c3d-4ce7-bee5-5096e77f7a96",
66936742
"key": "user_birthdate",
66946743
"value": "06/04/1998"
66956744
},
66966745
{
6697-
"id": "3c6e63f0-bb59-450a-97fd-2b8190155995",
6746+
"id": "68781bda-183a-4c92-8101-bdbe2fad979f",
66986747
"key": "user_lat",
66996748
"value": "44.8404"
67006749
},
67016750
{
6702-
"id": "87022369-4495-4acb-8032-60d876d6a194",
6751+
"id": "94ba9bc0-47ad-455f-97c6-89e55c1f7fd8",
67036752
"key": "user_lng",
67046753
"value": "-0.5805"
67056754
},
67066755
{
6707-
"id": "cff84987-6118-4b0c-b452-3760802e303a",
6756+
"id": "660fa986-f724-44a4-bd88-c81ec1f6ed73",
67086757
"key": "user_ip",
67096758
"value": "77.205.46.181"
67106759
}

0 commit comments

Comments
 (0)