Skip to content

Commit

Permalink
doc: update postman collection
Browse files Browse the repository at this point in the history
  • Loading branch information
sujeet-agrahari committed Feb 16, 2024
1 parent 4865cf7 commit 7602a39
Showing 1 changed file with 26 additions and 32 deletions.
58 changes: 26 additions & 32 deletions postman/QuickLinks.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,26 @@
"name": "getRoles",
"request": {
"method": "GET",
"header": []
"header": [
{
"key": "Authorization",
"value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im1lLnJnY3NtQGRmc3NkZmFzZmZpLmNvbSIsInN1YiI6Ijc4NGQ3YWVkLTRkYTctNDgxMS04MGRlLTdjOGNmN2E2ZmJmZCIsImlhdCI6MTcwODA4ODA1NiwiZXhwIjoxNzE2NTIyODU2fQ.0634vGqliYD25kOzK727eU1msaInUlX4Tde7qW2vNxA",
"type": "text"
}
],
"url": {
"raw": "http://localhost:3000/api/v1/roles",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"v1",
"roles"
]
}
},
"response": []
}
Expand All @@ -34,15 +53,14 @@
}
],
"url": {
"raw": "{{host}}/api/v1/users/784d7aed-4da7-4811-80de-7c8cf7a6fbfd/quick-links",
"raw": "{{host}}/api/v1/users/quick-links",
"host": [
"{{host}}"
],
"path": [
"api",
"v1",
"users",
"784d7aed-4da7-4811-80de-7c8cf7a6fbfd",
"quick-links"
]
}
Expand All @@ -56,7 +74,7 @@
"header": [
{
"key": "Authorization",
"value": "Bearer {{token}}",
"value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im1lLnJnY3NtQGRmc3NkZmFzZmZpLmNvbSIsInN1YiI6Ijc4NGQ3YWVkLTRkYTctNDgxMS04MGRlLTdjOGNmN2E2ZmJmZCIsImlhdCI6MTcwODA4ODA1NiwiZXhwIjoxNzE2NTIyODU2fQ.0634vGqliYD25kOzK727eU1msaInUlX4Tde7qW2vNxA",
"type": "text"
},
{
Expand All @@ -70,15 +88,16 @@
"raw": "{\n \"links\": [\n \"https://example.com\",\n \"https://example2.com\"\n ]\n}"
},
"url": {
"raw": "{{host}}/api/v1/users/{{userId}}/quick-links",
"raw": "http://localhost:3000/api/v1/users/quick-links",
"protocol": "http",
"host": [
"{{host}}"
"localhost"
],
"port": "3000",
"path": [
"api",
"v1",
"users",
"{{userId}}",
"quick-links"
]
}
Expand Down Expand Up @@ -214,31 +233,6 @@
}
},
"response": []
},
{
"name": "Get Short Link",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3001/quick-links?shortLink=LpAi00",
"protocol": "http",
"host": [
"localhost"
],
"port": "3001",
"path": [
"quick-links"
],
"query": [
{
"key": "shortLink",
"value": "LpAi00"
}
]
}
},
"response": []
}
]
}

0 comments on commit 7602a39

Please sign in to comment.