From 9c2ad9bee21ea2bc92ee0eac4d12bb7878fa8bdb Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Mon, 1 May 2023 22:17:46 -0400 Subject: ex2.11 use data from json-server, employ axios lib --- part2/phonebook/db.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 part2/phonebook/db.json (limited to 'part2/phonebook/db.json') diff --git a/part2/phonebook/db.json b/part2/phonebook/db.json new file mode 100644 index 0000000..b4a4ccd --- /dev/null +++ b/part2/phonebook/db.json @@ -0,0 +1,24 @@ +{ + "persons": [ + { + "name": "Arto Hellas", + "number": "040-123456", + "id": 1 + }, + { + "name": "Ada Lovelace", + "number": "39-44-5323523", + "id": 2 + }, + { + "name": "Dan Abramov", + "number": "12-43-234345", + "id": 3 + }, + { + "name": "Mary Poppendieck", + "number": "39-23-6423122", + "id": 4 + } + ] +} -- cgit v1.2.3