Skip to content

Commit

Permalink
Modified README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Naterus committed Oct 19, 2020
1 parent 9ac2b8a commit 9cd8c09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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: <http://localhost:9000>
3. After the message `Server started, ...` displays, enter the following URL in a browser: <http://localhost:9000/api/v1/cars>

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: <http://localhost:9000/api/v1/authorization/generate-key> - attach a raw json object to the request e.g `{
Expand Down
Binary file modified data/carServiceDB.mv.db
Binary file not shown.

0 comments on commit 9cd8c09

Please sign in to comment.