Hi,
I am making a app to show the interactions between Meteor and another system which communicate via REST HTTP calls. Is there any way I can store the final http request in an object?
So the student can see
- This is what I send to the server
- This is what it return to me
export function copyApp(guid, name) {
check(guid, String);
check(name, String);
console.log('QRS sync Functions Appp, copy the app id' + guid + 'to app with name: ', name);
try {
const result = HTTP.post('http://' + config.host + '/' + config.virtualProxy + '/qrs/app/' + guid + '/copy?', {
headers: authHeaders,
params: { 'xrfkey': config.xrfkey, 'name': name },
data: { "name": name }
})
return result;
} catch (err) {
throw new Meteor.Error('Copy app for selected customers failed', err.message);
}
};