I have two resources: Device and Model, and Model is under Device
This is my current URL design:
Device
api.example.com/devices/{id}
Model
Which one is correct?
api.example.com/device/models/{id}
api.example.com/devices/models/{id}
I have two resources: Device and Model, and Model is under Device
This is my current URL design:
api.example.com/devices/{id}
Which one is correct?
api.example.com/device/models/{id}
api.example.com/devices/models/{id}