Skip to content

Instantly share code, notes, and snippets.

@Animesh-Ghosh
Created November 8, 2021 18:13
Show Gist options
  • Select an option

  • Save Animesh-Ghosh/74ea2e3a92cbc40e7b7def36725e656a to your computer and use it in GitHub Desktop.

Select an option

Save Animesh-Ghosh/74ea2e3a92cbc40e7b7def36725e656a to your computer and use it in GitHub Desktop.
Postman API Collection
{
"info": {
"_postman_id": "8eb00015-dbbe-4627-893b-d5bf948414e8",
"name": "Django Knuckle Snapper",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Login",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"[email protected]\",\n \"password\": \"secret\"\n}"
},
"url": {
"raw": "{{api_base_url}}/user/login/",
"host": [
"{{api_base_url}}"
],
"path": [
"user",
"login",
""
]
}
},
"response": []
},
{
"name": "Register",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Test1 User\",\n \"email\": \"[email protected]\",\n \"password\": \"secret\"\n}"
},
"url": {
"raw": "{{api_base_url}}/user/register/",
"host": [
"{{api_base_url}}"
],
"path": [
"user",
"register",
""
]
}
},
"response": []
},
{
"name": "Add Advisor",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Test Advisor\"\n}"
},
"url": {
"raw": "{{api_base_url}}/admin/advisor/",
"host": [
"{{api_base_url}}"
],
"path": [
"admin",
"advisor",
""
]
}
},
"response": []
},
{
"name": "List Advisors",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{api_base_url}}/user/{{user_id}}/advisor/",
"host": [
"{{api_base_url}}"
],
"path": [
"user",
"{{user_id}}",
"advisor",
""
]
}
},
"response": []
},
{
"name": "Book Call",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"booking_time\": \"2021-11-08 11:17\"\n}"
},
"url": {
"raw": "{{api_base_url}}/user/{{user_id}}/advisor/{{advisor_id}}/",
"host": [
"{{api_base_url}}"
],
"path": [
"user",
"{{user_id}}",
"advisor",
"{{advisor_id}}",
""
]
}
},
"response": []
},
{
"name": "List Booked Calls",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{api_base_url}}/user/{{user_id}}/advisor/booking/",
"host": [
"{{api_base_url}}"
],
"path": [
"user",
"{{user_id}}",
"advisor",
"booking",
""
]
}
},
"response": []
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access_token}}",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "access_token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjM2NDEyMTAyLCJpYXQiOjE2MzYzOTA1MDIsImp0aSI6ImE4ZDQzM2Y0NmMxYzQ4NmViODlkZGZjNDJjMGY1YmYwIiwidXNlcl9pZCI6MX0.0oHKPeqiX8rIZgDNBOoLa7cnfG7pyI3qbbPsWuFQRbc"
},
{
"key": "api_base_url",
"value": "http://127.0.0.1:8000"
},
{
"key": "user_id",
"value": "1"
},
{
"key": "advisor_id",
"value": "1"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment