by m3galinux · 4y ago · 0 comments
/api/v1/employees/100 - direct path to a resource. 404 if it doesn't exist.
/some_photo.jpg - direct path to a file/resource. 404 if it doesn't exist.
/photo/100 - direct path to resource: photo ID 100. 404 if it doesn't exist.
/photo?id=100 - search for a photo with ID "100". Return a code 200 with an empty results set if that ID is not found. (With optional application-specific error feedback in the response body.) 404 if /photo doesn't exist at all.
No comments yet.