Implemented /initialize endpoint for Cicero Server.
Added test cases for /initialize.
New fromArchive() and fromUrl() support
Flags
Documentation will be added later with Swagger UI PR.
Maybe we can change params to request directly, comments are welcome.
Demo
Sample request.body:
{
"sample":"## Late Delivery and Penalty.\n\n In case of delayed delivery except for Force Majeure cases,\n\"Dan\" (the Seller) shall pay to \"Steve\" (the Buyer) for every 2 days\nof delay penalty amounting to 10.5% of the total value of the Equipment\nwhose delivery has been delayed. Any fractional part of a days is to be\nconsidered a full days. The total amount of penalty shall not however,\nexceed 55% of the total value of the Equipment involved in late delivery.\nIf the delay is more than 15 days, the Buyer is entitled to terminate this Contract.",
"params": {
"request" : {
"$class": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyRequest",
"forceMajeure": false,
"agreedDelivery": "2017-12-17T03:24:00Z",
"deliveredAt": null,
"goodsValue": 200.00
}
}
}
Coverage increased (+0.002%) to 93.626% when pulling 9c998099648ad4e13a1029d9921bcac209f41729 on mehmettokgoz:initialize into 62a2f44c40e26cd417c6502933f63f467e8fa579 on accordproject:master.
Changes
Flags
params
torequest
directly, comments are welcome.Demo
Sample request.body:
Response to sample request:
Author Checklist
--signoff
option of git commit.master
fromfork:branchname