有没有办法用admin-on-rest创建子资源?例如,在向帖子添加评论时,我们希望调用
POST posts/1/comments而不是像在ReferenceInput中那样在创建评论时选择帖子id
发布于 2018-07-04 14:15:04
如果你愿意迁移到react-admin,那么这至少是可能的。可能也适用于admin- on -rest。看看这个https://marmelab.com/react-admin/CreateEdit.html#prefilling-a-create-record
https://stackoverflow.com/questions/51158322
复制相似问题