Question:
what is the best way to pass the jsessionid for rest api request?
i have the following uri but it seems does not work:
http://localhost:8081/openmrs-standalone/ws/rest/v1/visit?v=default&limit=100;jsessionid=94F5E934BF1325DE83790A8252FD25C5
the following was the data return from session request:
{ username: 'admin', password: 'Admin123' }
{ sessionId: '94F5E934BF1325DE83790A8252FD25C5',
authenticated: true,
user:
{ uuid: '7470f582-a76d-11e6-9859-4bfd167405bc',
display: 'admin',
username: null,
systemId: 'admin',
userProperties: { loginAttempts: '0', 'emrapi.lastViewedPatientIds': '106,37' },
person:
{ uuid: '6ca76142-a76d-11e6-9859-4bfd167405bc',
display: 'Super User',
links: [Object] },
privileges: [],
roles: [ [Object], [Object] ],
retired: false,
links: [ [Object], [Object] ],
resourceVersion: '1.8' } }