API Model for Uber Service
Understand the endpoints and message format for the Uber API.
In this lesson, we’ll learn about the most interesting part of our design: defining the API endpoints for our functional requirements. Moreover, we’ll familiarize ourselves with the request–response structure of the Uber API calls.
Let's start by defining the base URL for our Uber API.
Base URL and API endpoints
The base URL for the Uber API comprises the protocol (https
), domain (api.uber.com
), and version (v1.0
) as depicted in the following illustration. We have a placeholder for services towards the end of the path, which can be changed according to our functional requirements.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.