Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added codeacademy - mongoDB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions fancy-todo-mongoose-odm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
node_modules/
257 changes: 257 additions & 0 deletions fancy-todo-mongoose-odm/fancy-todo-odm.postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
{
"info": {
"_postman_id": "c53be2ea-645c-41bf-bfc7-a24d59327496",
"name": "fancy-todo-odm",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "28737688"
},
"item": [
{
"name": "get all user",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3001/user",
"protocol": "http",
"host": [
"localhost"
],
"port": "3001",
"path": [
"user"
]
}
},
"response": []
},
{
"name": "create user",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"Riska Veli\",\r\n \"email\": \"riska.veli@example.com\",\r\n \"phone\": 1234567890\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3001/user",
"protocol": "http",
"host": [
"localhost"
],
"port": "3001",
"path": [
"user"
]
}
},
"response": []
},
{
"name": "update user by /user/:id",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"Jane Doe Updated\",\r\n \"email\": \"jane.doe.updated@example.com\",\r\n \"phone\": 9876543210\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3001/user/65fa8f2d77d7fd1cd28dd27d",
"protocol": "http",
"host": [
"localhost"
],
"port": "3001",
"path": [
"user",
"65fa8f2d77d7fd1cd28dd27d"
]
}
},
"response": []
},
{
"name": "delete user by /user/:id",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3001/user/65fa8f2d77d7fd1cd28dd27d",
"protocol": "http",
"host": [
"localhost"
],
"port": "3001",
"path": [
"user",
"65fa8f2d77d7fd1cd28dd27d"
]
}
},
"response": []
},
{
"name": "get user by /user/:id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3001/user/66011a361c5c31bdd4f7a8d3",
"protocol": "http",
"host": [
"localhost"
],
"port": "3001",
"path": [
"user",
"66011a361c5c31bdd4f7a8d3"
]
}
},
"response": []
},
{
"name": "create todo /user/:id",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"title\": \"Sample Todo\",\r\n \"description\": \"This is a sample todo item\",\r\n \"status\": \"pending\",\r\n \"userId\": \"66011a361c5c31bdd4f7a8d3\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3001/todo",
"protocol": "http",
"host": [
"localhost"
],
"port": "3001",
"path": [
"todo"
]
}
},
"response": []
},
{
"name": "get all todo",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3001/todo",
"protocol": "http",
"host": [
"localhost"
],
"port": "3001",
"path": [
"todo"
]
}
},
"response": []
},
{
"name": "update /todo/:id",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"title\": \"Updated Sample Todo\",\r\n \"status\": \"completed\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3001/todo/66011d681b180073e00e7f74",
"protocol": "http",
"host": [
"localhost"
],
"port": "3001",
"path": [
"todo",
"66011d681b180073e00e7f74"
]
}
},
"response": []
},
{
"name": "delete /todo/:id",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3001/todo/66011d681b180073e00e7f74",
"protocol": "http",
"host": [
"localhost"
],
"port": "3001",
"path": [
"todo",
"66011d681b180073e00e7f74"
]
}
},
"response": []
},
{
"name": "get /todo/:id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3001/todo/:id",
"protocol": "http",
"host": [
"localhost"
],
"port": "3001",
"path": [
"todo",
":id"
],
"variable": [
{
"key": "id",
"value": ""
}
]
}
},
"response": []
}
]
}
Loading