Add new transaction in .csv
file and return modified date
URL: /api/transaction
Method: POST
Auth required: no
{
"date": "[valid iso date format]",
"status": "[boolean]"
}
{
"date": "2015-01-02",
"status": "false"
}
Code: 200 OK
{ "modifiedDate": "2012-03-02T00:00:00.000Z" }
Code: 400 BAD REQUEST
Condition: If date
is wrong.
{
"err": "Bad date format. String has to be date format"
}
Code: 400 BAD REQUEST
Condition: If status
is wrong.
{
"err": "Bad status type. Status has to be either 'true' or 'false'"
}