Implemented /normalize endpoint for Cicero Server.
Added test cases for /normalize.
New fromArchive() and fromUrl() support
Flags
You have to send all the arguments as JSON field inside request.body
Documentation will be added later with Swagger UI PR.
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."
}
Response to sample request:
{
"result": "Late Delivery and Penalty.\n----\n\nIn 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.0% 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."
}
Author Checklist
[x] Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
[x] Vital features and changes captured in unit and/or integration tests
Coverage decreased (-0.03%) to 93.602% when pulling db0417ace2ac0852a218f23b60ebb8ccbdb6217e on mehmettokgoz:normalize into 2ac527659f4168261e9d5a4a9a2772216975bb84 on accordproject:master.
Changes
Flags
request.body
Demo
Sample request.body:
Response to sample request:
Author Checklist
--signoff
option of git commit.master
fromfork:branchname