rupadana / filament-api-service

A simple api service for supporting filamentphp
https://filamentphp.com/plugins/rupadana-api-service
MIT License
121 stars 26 forks source link

[Question]: How do I create API for related/child resources #62

Closed skills-up closed 2 months ago

skills-up commented 3 months ago

What happened?

I've a few resources with parent/child relationships, where the child relations resource do not appear on top level, and are accessed via getRelations method in the parent resource.

How can I create the API for these children within the context of the parent, such as: PUT /api/parents/{id}/children/{id}

How to reproduce the bug

N/A

Package Version

3.2

PHP Version

8.2.18

Laravel Version

11.9.2

Which operating systems does with happen with?

macOS

Notes

No response

rupadana commented 2 months ago

currently we are not ready for relation manager