Postman - WSSE authorization header

January 21, 2021

Introduction # Some services’ API require authorization based on WSSE header. That means, that server expects X-WSSE header to contain string including username, encoded password, nonce and timestamp - where timestamp is also used as salt. So - since timestamp is involved in it - every request will require different value for this header - it must be calculated on the fly - in the moment when request is made. ...

Magento2 - Newsletter API

December 28, 2020

Introduction # In this post - I try to share some nice tips about Postman and how it can be used for TDD of Magento API extension. By default, native Magento Newsletter module doesn’t provide any way to manage or get newsletter subscribers. Luckily, it’s not that big problem, because we can create such endpoints on our own. Magento2 is super friendly when it comes to create new endpoints and most of the job is already done - what we need to do is just to provide logic for them. ...