Pārlūkot izejas kodu

making rest api better again

Fabien CHERET 5 gadi atpakaļ
vecāks
revīzija
e671219dde
1 mainītis faili ar 16 papildinājumiem un 0 dzēšanām
  1. 16 0
      docs/post.md

+ 16 - 0
docs/post.md

@@ -18,6 +18,22 @@ Create a Parking Lot
 
 `pricing_policy` should not be null
 
+***Pricing policy data structure***
+example:
+```json  
+"pricing_policy": {
+   "type": "simple",
+   "flat_fee": 1,
+   "per_hour_fare": 0.5
+ }
+```
+
+`type`: non-null String - represents the type of policy implemented (at the moment, only `simple` has been implemented)
+
+`flat_fee`: float number that represents the fixed amount to pay
+
+`per_hour_fare`: float number that represents the amount to pay for each hour in the parking (each started hour is due)
+
 
 **Data example** all fields must be sent