Using local json server - http://localhost:3004/employees
http://dummy.restapiexample.com/api/v1
execute the following command to get started.
npm install -g json-server
Create a db.json file with some data -
{
"employees": [
{
"id": 1,
"employee_name": "Chris Pagac DDS",
"employee_salary": 73878,
"employee_age": 61,
"profile_image": "https://s3.amazonaws.com/uifaces/faces/twitter/hafeeskhan/128.jpg"
}
]
}
Start the JSON Server
json-server --watch db.json
employee_Db.json server. Download the json server here -
git@github.com:yvonnekw/local_json_servers.git
Head off to your browser -
http://localhost:3004/employees
Find out more here -
https://github.com/typicode/json-server
Right click the any test cases and run with java.