|
|
|
|
|
by treis
1432 days ago
|
|
>`GET /api/v1/employees/100/devices/1` where the employee with ID 100 does not exists but there is a device with the ID 1 owned by some other employee? So you're asking for the device with id 1 owned by employee 100. The answer is that the device exists but is not owned by employee 100 because there's no employee 100. So return 200 plus however you want to represent "the device exists but is not owned by employee 100 because there's no employee 100". >`GET /api/v1/employees/100/devices/1000` where both the employee with id 100 and device with id 1000 does not exists? Same as above but subbing in "because employee 100 and device 1000 don't exist" as appropriate |
|