diff --git a/README.md b/README.md index 43fc8e0..65c45bf 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Backend REST API service implementation in Java to manage Cars and Drivers +# Java Play Backend REST API service implementation to manage Cars and Drivers To run the car and drivers restful service, you will need the correct version of Java and a build tool. You can build Play projects with any Java build tool. Since sbt takes advantage of Play features such as auto-reload. @@ -28,9 +28,13 @@ To build and run the project: 2. Build the project. Enter: `sbt run`. The project builds and starts the embedded HTTP server. Since this downloads libraries and dependencies, the amount of time required depends partly on your connection's speed. -3. After the message `Server started, ...` displays, enter the following URL in a browser: +3. After the message `Server started, ...` displays, enter the following URL in a browser: -The Play application responds: `Welcome to the Hello World Tutorial!` +The Play application responds: `{ +"statusCode": 401, +"statusTitle": "unauthorized", +"message": "Invalid/missing authorization key. Ensure you include valid authorization key in request header." +}` ## Access Api endpoints 1. Generate authorization token from the endpoint: - attach a raw json object to the request e.g `{ diff --git a/data/carServiceDB.mv.db b/data/carServiceDB.mv.db index e685f81..3c0ab4a 100644 Binary files a/data/carServiceDB.mv.db and b/data/carServiceDB.mv.db differ