Thanks to another helpful Postman feature called Pre-request Scripts, we were presented with an elegant solution. Although Postman supports several common authentication mechanisms like HTTP Basic Authentication, OAuth, and Bearer Tokens, it lacks built-in support for generating the JWTs which Stream makes use of. One challenge we faced in building the collection was setting up an authentication mechanism to ensure Stream would accept and process the requests initiated by Postman. This will no doubt broaden even further as we add new API endpoints and expanded features. This covers adding and modifying activities, retrieving feeds, and maintaining the follower relationships in order to maintain the social graph within an application. The collection contains around 30 requests that demonstrate all of Stream's major features as well as the individual API calls that correspond to each step in our Getting Started tutorial. I f you'd like to learn a little more about what's in the collection and how we built it, read on. Those who're itching to try it out can head to the Stream documentation and download the collection.
We're now happy to publish a Postman collection that demonstrates all of the RESTful API endpoints to the Stream API. When we realized that Postman's newest features provide an opportunity to bundle API request examples, and perform more advanced steps like generating JSON Web Tokens (JWTs) for each request, we were keen to give it a shot with Stream. One of our goals is to help people see first hand how simple it is to build powerful social apps with Stream. We're also always looking for ways to make it quick and easy for other developers to try the service. Many of us at Stream use Postman regularly as we build and test our services. Since its inception, Postman has evolved beyond simply sending HTTP requests into a feature-rich product with support for automated testing and team collaboration. NOTE: This content within this blog post is no longer valid or in a working state.Īs many developers are aware, Postman is a fantastic tool for developing and testing RESTful web-services and APIs.