Following is a Postman Collection which I need to use for a task management application. Where each user can add, update, and delete his tasks. I’m confused how to use this collection. Would I need a backend or without that? I would use redux-toolkit for state management and local storage for user sessions. What is the use of this collection?
{
"info": {
"_postman_id": "ff0a72cf-0e97-4f4c-9112-47cbce7aa220",
"name": "CL Task Manager",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "16391054"
},
"item": [
{
"name": "Auth",
"item": [
{
"name": "v1/login",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.collectionVariables.set("AccessToken", JSON.parse(responseBody).data.token);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{n "email":"[email protected]",n "password":"12345678"n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{BaseUrl}}/v1/login",
"host": [
"{{BaseUrl}}"
],
"path": [
"v1",
"login"
]
}
},
"response": []
},
{
"name": "v1/register",
"event": [
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{n "name":"arham",n "email":"[email protected]",n "password":"12345678"n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{BaseUrl}}/v1/register",
"host": [
"{{BaseUrl}}"
],
"path": [
"v1",
"register"
]
}
},
"response": []
},
{
"name": "v1/logout",
"event": [
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{BaseUrl}}/v1/logout",
"host": [
"{{BaseUrl}}"
],
"path": [
"v1",
"logout"
]
}
},
"response": []
}
]
},
}