Publications sa nemozu handlit ako sucast Eventov, lebo pridanie obnasa osobitne nahravanie suborov s pridanymi form datami s menom, publication_type a orderom, a asi prefillnutym eventom pre priradenie k nemu - POST na competition/publication/upload. Tieto by potom aj malo ist menit (PATCH, DELETE) - teda okrem event number. BE endpointy na toto uz existuju, snad aj funguju - napr. PATCH by vlastne nemal vyzadovat/riesit file field.
Meno publikacie je inak optional, dokonca BE ho zatial nepouziva, mozno uz je na to BE issue.
zo zavreteho duplikatu (#141):
Event vytvorit vieme, vieme do aj editovat. Nevieme zatial ale handlovat jeho publications. Nemozu byt sucastou POST (create) / PATCH (edit) requestov, potrebujeme osobitne cally z tychto:
Publications sa nemozu handlit ako sucast Eventov, lebo pridanie obnasa osobitne nahravanie suborov s pridanymi form datami s menom, publication_type a orderom, a asi prefillnutym eventom pre priradenie k nemu - POST na competition/publication/upload. Tieto by potom aj malo ist menit (PATCH, DELETE) - teda okrem event number. BE endpointy na toto uz existuju, snad aj funguju - napr. PATCH by vlastne nemal vyzadovat/riesit
file
field.Meno publikacie je inak optional, dokonca BE ho zatial nepouziva, mozno uz je na to BE issue.
zvazit napriklad nieco ako "nested resource" tu: https://marmelab.com/react-admin/Resource.html#nested-resources
zo zavreteho duplikatu (#141): Event vytvorit vieme, vieme do aj editovat. Nevieme zatial ale handlovat jeho publications. Nemozu byt sucastou POST (create) / PATCH (edit) requestov, potrebujeme osobitne cally z tychto:
to iste #318