In this lesson, we will focus on the API design for a comment service that directs the request and response between clients and servers. We’ll also discuss different API calls using HTTP methods that fulfill our functional requirements, which we discussed in the Requirements of the Comment API lesson. Furthermore, as discussed in the previous lesson, we will adopt the REST API style for the communication between a client and an API gateway. Let's start with the base URL of our API

Base URL and API endpoints

We can consider the following base URL for the comment service, which we will use in the following sections.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.