BNSF Railway Interview Question

The question is mainly about how to implement RESTful API with requests and responses, also complete the required the unit tests. It's not algorithms questions, so should be fair enough to resolve the problems if you have related experience.