diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index fd57a08..e7874d9 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -3,9 +3,7 @@
-
-
-
+
@@ -106,7 +104,7 @@
-
+
@@ -127,11 +125,11 @@
-
+
-
-
+
+
@@ -151,11 +149,11 @@
-
+
-
-
+
+
@@ -163,6 +161,15 @@
+
+
+
+
+
+
+
+
+
@@ -210,9 +217,9 @@
-
+
@@ -429,7 +436,7 @@
-
+
1548121370553
@@ -515,11 +522,18 @@
1548238865354
-
+
+ 1548276405635
+
+
+
+ 1548276405635
+
+
-
+
@@ -532,6 +546,7 @@
+
@@ -542,12 +557,12 @@
-
+
-
+
@@ -561,7 +576,7 @@
-
+
@@ -625,7 +640,8 @@
-
+
+
@@ -783,23 +799,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -827,20 +826,37 @@
-
+
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/README.md b/README.md
index 913c8ed..90b6cec 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
## MODEL
-###Product
+### Product
```json5
{
"id": Int,
@@ -29,7 +29,7 @@ Any of these couldn't be ``null``
## API
-###Edit quantity of the product.
+### Edit quantity of the product.
The service will handle `POST` requests for `/api/product/change-quantity`, by changing quantity of product in database.
@@ -64,7 +64,7 @@ Response `200` with `JSON`:
* * *
-###Retrieve a paginated list of products
+### Retrieve a paginated list of products
The service will handle `GET` requests for `/api/get-all`, by retreving a paginated list of products. Optionally with a `page`, `size` **or** `page`, `size` and`sort` parameters in the query string.
Page start numbering on `page=0`. Default list is sorted by `id`.
@@ -121,7 +121,7 @@ Response `200` with `JSON`:
```
* * *
-###Get price of all products.
+### Get price of all products.
The service will handle `GET` request on `/api/get-price-of-all` returing `Float` price of all products in the database.
```json
@@ -136,8 +136,9 @@ Response `200` with `JSON`:
}
```
+
* * *
-###Create a new product.
+### Create a new product.
The service will handle `POST` request `/api/product/add`, by adding `Product` to database.
```json
@@ -153,7 +154,7 @@ Content-Type: application/json
"imageLink": String
}
```
-Response 201 with JSON
+Response `201` with `JSON`
```json
@@ -168,7 +169,7 @@ Response 201 with JSON
```
* * *
-###Delete product with `id`.
+### Delete product with `id`.
The service will handle `DELETE` request `/api/delete-product`, by
```json
@@ -185,7 +186,7 @@ Response `200`:
* * *
-###Get product with `id`
+### Get product with `id`
The service wil handle `GET` request `/api/product/get-by-id`, by returning product with `id`.
```json
@@ -212,7 +213,7 @@ Response `200` with `JSON`:
* * *
-###Update product
+### Update product
The service will handle ``POST`` request `/api/product/update/{id}` with path variable `id`, by updating existing product. In request
`id` is required, fields which won't be modified should be `null`.