API Model for Pub-Sub Service

In the previous lesson, we discussed the important technical aspects that direct the design of the pub-sub API. This lesson describes the request and response format to access different endpoints for various operations.

Let's start by defining the base URL for the pub-sub API.

Base URL and API endpoints

The URL of the pub-sub API can be given as shown below:

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