I tried to add a new card via API with curl POST request
Does the new card get added, just no description?
Yes, even if i do add the description attribute.
@juliushaertl is anyone leading on API stuff at the moment?
Yes, the initial api implementation only allows to set the title, type and order (https://deck.readthedocs.io/en/latest/API/#cards) However it of course would make sense to also set the other details on creation. cc @desperateCoder since we discussed this as well for the android app.
@putt1ck I try to catch up on issues that come up, but my time for deck is unfortunately rather limited at the moment. Contributions are always very welcome.
Some code hints if someone wants to look into implementing this:
https://github.com/nextcloud/deck/blob/master/lib/Controller/CardApiController.php#L76
https://github.com/nextcloud/deck/blob/master/lib/Service/CardService.php#L158-L192
@juliushaertl the hints should help @a11exandru fix his own bug report :)
Thanks @juliushaertl ! I will look into it.
@a11exandru @juliushaertl that'd be great, that's where i'm stuck right now. Thanks in advance!
Most helpful comment
Thanks @juliushaertl ! I will look into it.