Implemented GET methods in the API with 404 error handling