pondersource / prejournal

An experimental bookkeeping tool that sits between source documents and journals
https://prejournal.org
MIT License
2 stars 2 forks source link

return identifier of created Entry #131

Open michielbdejong opened 2 years ago

michielbdejong commented 2 years ago

As mentioned in https://gitter.im/federatedbookkeeping/timesheets?at=630353709994996293fe509b

This might be related to #127, I think we already return the movement ID but I will find out.

michielbdejong commented 2 years ago

Ah, I see the problem:

curl -i -d'["22 Aug 2022", "nlnet-timesh", "Federated Timesheets", 6]' http://michiel:****@localhost:8080/v1/worked-hours
HTTP/1.1 200 OK
Host: localhost:8080
Date: Mon, 22 Aug 2022 10:57:22 GMT
Connection: close
X-Powered-By: PHP/8.1.4
Content-type: text/html; charset=UTF-8

[
    {
        "worker": "michiel",
        "project": "nlnet-timesh:Federated Timesheets",
        "timestamp_": "2022-08-22 00:00:00",
        "amount": "8",
        "description": ""
    }
]
gsvarovsky commented 2 years ago

Could you please update the docs for this?

michielbdejong commented 2 years ago

@ishifoev can you do this docs update as part of your work on #101 next week?