An Api being developed in nodeJs with mongoDb.
GET ~ /bills
GET ~ /bill/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of item to fetch |
POST ~ /addBill
Parameter | Type | Description |
---|---|---|
billDate |
Date |
date of the bill issued |
paidDate |
Date |
date of the bill when paid |
unitConsumed |
Number |
Required |
amount |
Number |
Required |
PUT ~ /bill/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of item to fetch |
billDate |
Date |
date of the bill issued |
paidDate |
Date |
date of the bill when paid |
unitConsumed |
Number |
Required |
amount |
Number |
Required |
DELETE ~ /bill/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of item to fetch |
Errors are still to be tackled, so don't try with your tweaks right now :) with the deployed link (till it gets completed) as it will break the server :(
Though You can run according to the API Reference above