OSDN Git Service

Modified: Upload, Command execution
[eos/zephyr.git] / test / rest / execution.test.js
1 'use strict';
2
3 var request = require('request');
4
5 var data = JSON.stringify({command: 'dcdFilePrint', options: [{name: '-r', arguments: [1,2,3]}, { name: '-i', arguments: ['debugRest.mrc']}, { name: '-o', arguments: ['file1.txt']} ], workspace: "1f83f620-c1ed-11e5-9657-7942989daa00"});
6
7 request.post({url: 'http://localhost:3000/api/v1/execution', formData: { data: data }}, function(err, response) {
8     console.log(response);
9 });