Discuss.FOLIO.org is no longer used. This is a static snapshot of the website as of February 14, 2023.

Rest call to postman but getting a result null

arvind
22 Nov '17

Hi Guys, I’m trying to make rest call to postman and I’m getting a null value as a result. What am I doing here?

postman url : “https://98c33422-9c77-4910-b63c-23ac3b939f14.mock.pstmn.io/vendor

Manifest


  static manifest = Object.freeze({
    vendor: {
      type: 'rest',
      root: 'https://98c33422-9c77-4910-b63c-23ac3b939f14.mock.pstmn.io',
      path: 'vendor', 
      records: 'vendors',
      headers: {
        'Accept': 'application/json',
        'Content-Type':'application/json',
        'X-Okapi-Tenant': 'diku',
        'X-Okapi-Token': 'dummyJwt.eyJzdWIiOiJzZWIiLCJ0ZW5hbnQiOm51bGx9.sig'
      }
    }
  });

Props: