Open yedpodtrzitko opened 11 years ago
update: it happens to gallery
but deleting doesn't work even for articles
Is it possible in API to save listing for gallery @miso-belica ?
it is - you already do it in article's form, afaik
Yes, you only change resource_uri
of publishable.
You are sending this for article:
{
"category": "/admin-api/category/3/",
"commercial": true,
"publish_from": "2013-1-14T11:37",
"publishable": "/admin-api/article/26/"
}
You should send JSON below for gallery resource. See working cURL example https://github.com/SanomaCZ/ella-hub/blob/master/tests/test_ella_dev_server.sh#L208-L216
{
"category": "/admin-api/category/3/",
"commercial": false,
"publish_from": "2013-1-14T11:37",
"publishable": "/admin-api/gallery/305/"
}
There is missing required attribute publishable
in your request now. https://github.com/SanomaCZ/ella-hub/blob/master/doc/api.rst#listing
adding listing
steps to reproduce
expected behaviour
current behaviour
deleting listing
steps to reproduce
expected behaviour
current behaviour