From dbf9d20d3263bea49beda2aae2bfb4996fafcfb5 Mon Sep 17 00:00:00 2001 From: Akhirudin Salasa Date: Wed, 9 Jul 2025 02:59:11 +0700 Subject: [PATCH 1/2] Update db.json --- db.json | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/db.json b/db.json index 7e0d3c0a92..0cc05e3e71 100644 --- a/db.json +++ b/db.json @@ -1,8 +1,34 @@ { "posts": [ - { "id": 1, "title": "Post 1" }, - { "id": 2, "title": "Post 2" }, - { "id": 3, "title": "Post 3" } + { + id: 1, + firstName: "Akhirudin", + lastName: "Salasa", + company: { + name: "PT. Tech Solutions", + jobTitle: "Software Engineering", + }, + email: "salasa@example.com", + phoneNumber: "+62 123-456-7890", + websiteUrl: "https://salasa.id", + isFavorited: true, + createdAt: new Date("2025-06-15"), + }, + { + id: 2, + firstName: "Daniyal", + lastName: "Said", + company: { + name: "Tesla", + jobTitle: "Engineer", + }, + email: "dsaid@example.com", + phoneNumber: "+62 987-654-3210", + websiteUrl: "https://d.said.com", + isFavorited: true, + createdAt: new Date("2025-06-18"), + }, + ], "comments": [ { "id": 1, "body": "some comment", "postId": 1 }, From 345e36c9efa398b84bd0e044a3174f1c73cd6ea8 Mon Sep 17 00:00:00 2001 From: Akhirudin Salasa Date: Wed, 9 Jul 2025 03:07:05 +0700 Subject: [PATCH 2/2] Update db.json --- db.json | 35 +++++++++-------------------------- 1 file changed, 9 insertions(+), 26 deletions(-) diff --git a/db.json b/db.json index 0cc05e3e71..0b3d1c5b4a 100644 --- a/db.json +++ b/db.json @@ -1,34 +1,17 @@ { "posts": [ { - id: 1, - firstName: "Akhirudin", - lastName: "Salasa", - company: { - name: "PT. Tech Solutions", - jobTitle: "Software Engineering", + "id": 1, + "title": "Post 1" }, - email: "salasa@example.com", - phoneNumber: "+62 123-456-7890", - websiteUrl: "https://salasa.id", - isFavorited: true, - createdAt: new Date("2025-06-15"), - }, - { - id: 2, - firstName: "Daniyal", - lastName: "Said", - company: { - name: "Tesla", - jobTitle: "Engineer", + { + "id": 2, + "title": "Post 2" }, - email: "dsaid@example.com", - phoneNumber: "+62 987-654-3210", - websiteUrl: "https://d.said.com", - isFavorited: true, - createdAt: new Date("2025-06-18"), - }, - + { + "id": 3, + "title": "Post 3" + } ], "comments": [ { "id": 1, "body": "some comment", "postId": 1 },