❔ QuestionController
Hello, i have a question regarding API structure.
I have two classses, Item and Store. I created CRUD endpoints for both. Lets say i want to be able to return a store including all the items related to that store, and also be able to to POST a store with items. Would you create a seperate controller for these endpoints, for example StoreIemController containing PostStoreWithItems/GetAllStoresWithItems or use existing Store/ItemController?
Thanks in advance
I have two classses, Item and Store. I created CRUD endpoints for both. Lets say i want to be able to return a store including all the items related to that store, and also be able to to POST a store with items. Would you create a seperate controller for these endpoints, for example StoreIemController containing PostStoreWithItems/GetAllStoresWithItems or use existing Store/ItemController?
Thanks in advance