docs: def post(self, resource, data=None, **kwargs):
          """Shortcut for ``request('POST', resource)``.
          Use this to make POST request since it will also encode ``data`` to
          'application/json' format."""
          headers = dict(kwargs.pop('headers', {}))
          headers.setdefault('Content-Type', 'application/json')
          data = json.dumps(data)
          return self.request('POST', resource, headers=headers,
                              data=data, **kwargs)