Skip to content

Commit

Permalink
api collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Princeton21 committed Dec 20, 2023
1 parent 9866c66 commit 77189a6
Showing 1 changed file with 259 additions and 0 deletions.
259 changes: 259 additions & 0 deletions server/api-collection/todo.postman_collection
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
{
"info": {
"_postman_id": "2a0b9a31-69a3-46e0-95b0-88b45cba7e6d",
"name": "Todo",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "17374289"
},
"item": [
{
"name": "list",
"item": [
{
"name": "getAllLists",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/api/lists/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"lists",
""
]
}
},
"response": []
},
{
"name": "createList",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"title\":\"study\",\r\n \"color\":300\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/lists/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"lists",
""
]
}
},
"response": []
},
{
"name": "getList",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/api/lists/65807f98174ff77223eb0b26",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"lists",
"65807f98174ff77223eb0b26"
]
}
},
"response": []
},
{
"name": "deleteList",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/api/lists/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"lists",
""
]
}
},
"response": []
}
]
},
{
"name": "task",
"item": [
{
"name": "getTask",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "text"
}
}
},
"url": {
"raw": "http://localhost:8080/api/lists/6583678a82859b6ca5e77cab",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"lists",
"6583678a82859b6ca5e77cab"
]
}
},
"response": []
},
{
"name": "addTask",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"task\":\"bathe for 30 mins\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/lists/6583678a82859b6ca5e77cab/add",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"lists",
"6583678a82859b6ca5e77cab",
"add"
]
}
},
"response": []
},
{
"name": "updateTask",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"_id\":\"65822c8eee5d86cc2cf927e8\",\r\n \"task\":\"clean the utensils\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/lists/65807b27174ff77223eb0adc",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"lists",
"65807b27174ff77223eb0adc"
]
}
},
"response": []
},
{
"name": "completeTask",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"_id\":\"658367be82859b6ca5e77cb6\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/lists/6583678a82859b6ca5e77cab/complete",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"lists",
"6583678a82859b6ca5e77cab",
"complete"
]
}
},
"response": []
},
{
"name": "deleteCompleted",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/api/list/65807b27174ff77223eb0adc",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"list",
"65807b27174ff77223eb0adc"
]
}
},
"response": []
}
]
}
]
}

1 comment on commit 77189a6

@vercel
Copy link

@vercel vercel bot commented on 77189a6 Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

to-do-backend – ./server

to-do-backend-gules.vercel.app
to-do-backend-princeton.vercel.app
to-do-backend-git-main-princeton.vercel.app

Please sign in to comment.